* config/nm-linux.h (struct target_ops): Remove forward declaration.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
669211f5
UW
12010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4 (lin_thread_get_thread_signals): Remove prototype.
5 (GET_THREAD_SIGNALS): Remove.
6 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
7 * linux-thread-db.c (check_thread_signals): Directly call
8 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
9
b7a8b4ef
UW
102010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
11
12 * gregset.h (GDB_FPXREGSET_T): Remove.
13 (gdb_fpxregset_t): Likewise.
14 (supply_fpxregset): Remove prototype.
15 (fill_fpxregset): Likewise.
16 * i386-linux-nat.c (supply_fpxregset): Remove.
17 (fill_fpxregset): Likewise.
18 (fetch_fpxregs): Inline supply_fpxregset call.
19 (store_fpxregs): Inline fill_fpxregset call.
20
21 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
22 * config/i386/nm-linux.h: Remove file.
23
82892036
MS
242010-06-09 Michael Snyder <msnyder@vmware.com>
25
26 * target.c (update_current_target): Fix spelling error in comment.
27 (target_mourn_inferior): Fix spelling error in error message.
28
5ddb52fa
PH
292010-06-08 Paul Hilfinger <hilfingr@adacore.com>
30
31 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
32 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
33
0f2caa1b
MS
342010-06-08 Michael Snyder <msnyder@vmware.com>
35
36 * remote.c (remote_close): Set inferior_ptid to null_ptid.
37
3bebe2f2
JK
382010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 * configure.ac <"${have_libpython}" != no>: New workaround of
41 python#4434.
42 * configure: Regenerate.
43
eaaffdf4
HZ
442010-06-08 Hui Zhu <teawater@gmail.com>
45
46 * record.c (record_wait): Move signal out of replay code.
47
5c631832
JK
482010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 Fix PR 10640.
51 * dwarf2-frame.c (no_dwarf_call): New function.
52 (execute_stack_op): Set CTX->DWARF_CALL.
53 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
54 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
55 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
56 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
57 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
58 (needs_frame_dwarf_call): New function.
59 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
60 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
61 Update the comment. Move variables die, offset and error call to ...
62 (follow_die_ref): ... a new function.
63 (dwarf2_fetch_die_location_block): New function.
64 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
65
17ea53c3
JK
662010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
67
68 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
69 (dwarf_expr_tls_address): Use per_cu instead of objfile.
70 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
71 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
72 this change.
73 (struct needs_frame_baton): New field per_cu.
74 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
75 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
76
245040d7
SW
772010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
78
79 * cp-support.c (make_symbol_overload_list_namespace): Only search
80 static and global blocks.
81 (make_symbol_overload_list_block): New function.
82 (make_symbol_overload_list): Separate namespace search from block
83 search.
84 (make_symbol_overload_list_qualified): Use
85 make_symbol_overload_list_block.
86
4c3376c8
SW
872010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
88
89 * value.h: Created oload_search_type enum.
90 (find_overload_match): Use oload_search_type enum.
91 * valops.c (find_overload_match): Support combined member and
92 non-member search.
93 * eval.c (evaluate_subexp_standard): Calls to
94 find_overload_match now use oload_search_type enum.
95 (oload_method_static): Verify index is a proper value.
96 * valarith.c (value_user_defined_cpp_op): Search for and handle
97 both member and non-member operators.
98 (value_user_defined_cpp_op): New function.
99 (value_user_defined_op): New function.
100 (value_x_unop): Use value_user_defined_op.
101 (value_x_binop): Ditto.
102 * cp-support.c (make_symbol_overload_list_using): Added block
103 iteration.
104 Add check for namespace aliases and imported declarations.
105
ee55da67
JK
1062010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * breakpoint.h (owner): Extend the comment.
109
1a2ab13a
JK
1102010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 Clear stale specific bp_location from former whole breakpoint.
113 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
114 code ...
115 (free_bp_location): ... here. Rename there the called function to
116 bpstat_remove_bp_location_callback.
117 (bpstat_remove_breakpoint_callback): Rename to ...
118 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
119 to struct bp_location. Change the called function to
120 bpstat_remove_bp_location. Create new declaration for the function.
121 (bpstat_remove_breakpoint): Rename to ...
122 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
123 code for the new parameter type.
124
16d6b4b7
NS
1252010-06-07 Nathan Sidwell <nathan@codesourcery.com>
126
127 * README: Make version-agnostic.
128
7e314c57
JK
1292010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
130
131 Fix duplicate types for single DIE.
132 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
133 set_die_type.
134 (read_array_type): Remove type initialization. Recheck get_die_type
135 after initial die_type. Move set_die_type before set_descriptive_type.
136 (read_set_type): New variable domain_type. Recheck get_die_type after
137 initial die_type. Move attr initialization later.
138 (read_tag_pointer_type, read_tag_reference_type): New variable
139 target_type. Recheck get_die_type after initial die_type.
140 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
141 die_type and die_containing_type.
142 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
143 Recheck get_die_type after initial die_type.
144 (read_subrange_type): Recheck get_die_type after initial die_type.
145 Move set_die_type before set_descriptive_type.
146 (set_die_type): Extend the function comment. Call complaint if DIE has
147 some type already set.
148
2f296114
VP
1492010-06-05 Vladimir Prus <vladimir@codesourcery.com>
150
151 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
152 for current naming of thread groups (iN, not N).
153
554794dc
SDJ
1542010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
155
156 * ada-lang.c (ada_operator_length): Constify `struct expression'.
157 * parse.c (operator_length): Likewise.
158 (operator_length_standard): Likewise.
159 * parser-defs.h (operator_length): Likewise.
160 (operator_length_standard): Likewise.
161 (struct exp_descriptor <operator_length>): Likewise.
162
967cf477
DE
1632010-06-04 Doug Evans <dje@google.com>
164
bddaacb9 165 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
166 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
167 * python/python-internal.h (gdbpy_enabled_cst): Declare.
168 * python/python.c (gdbpy_enabled_cst): Define.
169 (_initialize_python): Initialize gdbpy_enabled_cst.
170 * NEWS: Add entry.
171
2dec564e
JK
1722010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 * breakpoint.c (update_global_location_list): Fix comment typo.
175
44b5680a
HZ
1762010-06-04 Hui Zhu <teawater@gmail.com>
177
178 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
179
e7a30f46
DE
1802010-06-03 Doug Evans <dje@google.com>
181
182 * configure.ac: Don't fail if python is unusable when
183 configured with --with-python=auto.
184 * configure: Regenerate.
185
84b4420f
SW
1862010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
187
188 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
189
df178451
PM
1902010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
191
192 * valprint.h (get_array_bounds): Change low and high parameter types
193 to LONGEST *.
194 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
195 compute bounds.
196 (val_print_array_elements): Adapt to change above.
197 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
198 * p-valprint.c (pascal_val_print): Likewise.
199
fd5700c7
JK
2002010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
201
202 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
203 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
204 .F08.
205
f55ee35c
JK
2062010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
207
208 Support DW_TAG_module as separate namespaces.
209 * dwarf2read.c (typename_concat): New parameter physname.
210 (read_module_type): New function and declaration.
211 (scan_partial_symbols): Scan also DW_TAG_module children.
212 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
213 to typename_concat backward compatible physname value 0.
214 (partial_die_full_name, read_namespace_type): Pass to typename_concat
215 backward compatible physname value 0.
216 (add_partial_module, read_module): Remove FIXME comment.
217 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
218 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
219 DIEs under DW_TAG_module.
220 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
221 DW_AT_MIPS_linkage_name first, extend it for language_fortran
222 && physname and return there instead of just setting NAME. Extend
223 the main block for language_fortran. Pass physname parameter to the
224 typename_concat call.
225 (read_import_statement, read_func_scope, get_scope_pc_bounds)
226 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
227 (new_symbol): Fill in cplus_specific.demangled_name if it is still
228 missing from SYMBOL_SET_NAMES in the language_fortran case.
229 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
230 variables.
231 (read_type_die) <DW_TAG_module>: New.
232 (MAX_SEP_LEN): Increase to 7.
233 (typename_concat): New parameter physname. New variable lead. Support
234 also language_fortran.
235 * f-exp.y (yylex): Consider : also as a symbol name character class.
236 * f-lang.c: Include cp-support.h.
237 (f_word_break_characters, f_make_symbol_completion_list): New functions.
238 (f_language_defn): Use cp_lookup_symbol_nonlocal,
239 f_word_break_characters and f_make_symbol_completion_list.
240 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
241 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
242 * symtab.c (symbol_init_language_specific): Support language_fortran.
243 (symbol_find_demangled_name): New comment on language_fortran.
244 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
245 for language_fortran.
246 (lookup_symbol_aux_local): Check imports also for language_fortran.
247 (default_make_symbol_completion_list): Rename to ...
248 (default_make_symbol_completion_list_break_on): ... this name. New
249 parameter break_on, use it.
250 (default_make_symbol_completion_list): New stub.
251 * symtab.h (default_make_symbol_completion_list_break_on): New
252 prototype.
253
cb91c06a
JB
2542010-06-02 Joel Brobecker <brobecker@adacore.com>
255
256 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
257 to error.
258
5c315b68
JK
2592010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
260
261 * dwarf2read.c (typename_concat): Add const to the variable sep.
262
9eae7c52
TT
2632010-06-02 Tom Tromey <tromey@redhat.com>
264
265 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
266 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
267 type is const. Add 'def' argument. Add missing operators, remove
268 unhandled ones.
269 (decode_locdesc): Update.
270 (dwarf2_always_disassemble): New global.
271 (show_dwarf2_always_disassemble): New function.
272 (_initialize_dwarf2_read): Add always-disassemble.
273 (dwarf2_per_cu_offset_size): New function.
274 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
275 (piece_end_p): New function.
276 (locexpr_describe_location_piece): Replace 'size' argument with
277 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
278 some constants. Remove errors.
279 (disassemble_dwarf_expression): New function.
280 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
281 Add 'offset_size' argument.
282 (loclist_describe_location): Change output formatting.
283 * dwarf2expr.h (dwarf_stack_op_name): Declare.
284
7d3fe98e
SW
2852010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
286
287 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
288 anonymous type case.
289
e77813c8
PM
2902010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
291
292 * dwarf2read.c (read_subrange_type): Handle missing base type
293 according to Dwarf-2 specifications.
294
7cf3118a
SDJ
2952010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
296
297 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
298 BINOP_EXCL.
299 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
300 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
301 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
302 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
303 UNOP_CHMAX, UNOP_CHMIN.
304 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
305 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
306 UNOP_CHMIN>: Remove opcodes.
307
ae4d0c03
PM
3082010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
309
310 * dwarf2read.c (read_func_scope): Do not complain for
311 external function if bounds are not found.
312
fa593d66
PA
3132010-06-01 Pedro Alves <pedro@codesourcery.com>
314
315 * NEWS: Mention gdbserver fast tracepoints support.
316
cd44747c
PM
3172010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
318
319 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
320 New macros.
321 (windows_set_console_info): New function.
322 (windows_create_inferior): Call windows_set_console_info
323 if NEW_CONSOLE is true.
324 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
325 (_initialize_loadable): Initialize GetConsoleFontSize and
326 GetCurrentConsoleFont.
327
f6528abd
JK
3282010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
329
330 * Makefile.in (RDYNAMIC): New.
331 (SFILES): Add proc-service.list.
332 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
333 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
334 * config/arm/linux.mh: Likewise.
335 * config/i386/linux.mh: Likewise.
336 * config/i386/linux64.mh: Likewise.
337 * config/ia64/linux.mh: Likewise.
338 * config/m32r/linux.mh: Likewise.
339 * config/m68k/linux.mh: Likewise.
340 * config/mips/linux.mh: Likewise.
341 * config/pa/linux.mh: Likewise.
342 * config/powerpc/linux.mh: Likewise.
343 * config/powerpc/ppc64-linux.mh: Likewise.
344 * config/s390/s390.mh: Likewise.
345 * config/sparc/linux.mh: Likewise.
346 * config/sparc/linux64.mh: Likewise.
347 * config/xtensa/linux.mh: Likewise.
348 * configure.ac: New RDYNAMIC on native host and GCC.
349 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
350 * configure: Regenerate.
351 * proc-service.list: New.
352
ca2a87a0
JK
3532010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
356 CONTENT.
357
1e225492
JK
3582010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 * linux-nat.c (linux_nat_wait_1): Do not call
361 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
362 TARGET_WAITKIND_SIGNALLED.
363
e802dbe0
JB
3642010-05-27 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.c (ada_inferior_data): New struct.
367 (ada_inferior_data): New static global.
368 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
369 (ada_get_tsd_type): New functions.
370 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
371 to look the tsd type up.
372 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
373 event. Set ada_inferior_data.
374
176a6961
PA
3752010-05-27 Pedro Alves <pedro@codesourcery.com>
376
377 * remote.c (unpack_varlen_hex): Remove forward declaration.
378 (remote_console_output): Make static, and add forward declaration.
379 * remote.h: Drop FIXME comment.
380 (unpack_varlen_hex): Declare.
381 (remote_console_output, remote_cisco_objfile_relocate)
382 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
383 Delete declarations.
384 * tracepoint.c: Include "remote.h".
385 (unpack_varlen_hex): Delete declaration.
386
88bfdde4
TT
3872010-05-27 Tom Tromey <tromey@redhat.com>
388
389 * dwarf2loc.c (struct piece_closure) <refc>: New field.
390 (allocate_piece_closure): Initialize refc.
391 (copy_pieced_value_closure): Use refc.
392 (free_pieced_value_closure): Likewise.
393
8c6363cf
TT
3942010-05-27 Tom Tromey <tromey@redhat.com>
395
396 * arm-tdep.c (push_stack_item): 'contents' now const.
397 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
398 value_contents_writeable. Introduce new temporary.
399
7ecb917e
TT
4002010-05-27 Tom Tromey <tromey@redhat.com>
401
402 * findcmd.c (parse_find_args): Use value_contents, not
403 value_contents_raw.
404
f42a0a33
TT
4052010-05-27 Tom Tromey <tromey@redhat.com>
406
407 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
408 const. Use value_contents, not value_contents_writeable.
409
12b795ad
JB
4102010-05-27 Joel Brobecker <brobecker@adacore.com>
411
412 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
413 by call to value_contents.
414
5a2e11c7
OS
4152010-05-27 Ozkan Sezer <sezeroz@gmail.com>
416
417 * MAINTAINERS: Add myself for write after approval privileges.
418
ec685c5e
DE
4192010-05-26 Doug Evans <dje@google.com>
420
0c4a4063
DE
421 Allow python to find its files if moved from original location.
422 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
423 (GDB_AC_WITH_DIR): Call it.
424 * configure.ac: Define WITH_PYTHON_PATH if we can find the
425 python installation directory.
426 * config.in: Regenerate.
427 * configure: Regenerate.
428 * defs.h (python_libdir): Declare.
429 * main.c (python_libdir): Define.
430 (captured_main): Initialize python_libdir.
431 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
432 call Py_SetProgramName to make sure python can find its libraries
433 and modules.
434
ec685c5e
DE
435 * configure.ac: Try to use python's distutils to fetch compilation
436 parameters.
437 * configure: Regenerate.
438 * python/python-config.py: New file.
439
363a6e9f
OS
4402010-05-26 Ozkan Sezer <sezeroz@gmail.com>
441
442 * ser-tcp.c (net_open): Check error return from socket() call by its
443 equality to -1 not by it being negative.
444 (net_close): Likewise.
445
dde08ee1
PA
4462010-05-26 Pedro Alves <pedro@codesourcery.com>
447
448 * NEWS: Mention the `qRelocInsn' feature.
449 * gdbarch.sh (relocate_instruction): New.
450 * amd64-tdep.c (rip_relative_offset): New.
451 (append_insns): New.
452 (amd64_relocate_instruction): New.
453 (amd64_init_abi): Install it.
454 * i386-tdep.c (append_insns): New.
455 (i386_relocate_instruction): New.
456 (i386_gdbarch_init): Install it.
457 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
458 * gdbarch.h, gdbarch.c: Regenerate.
459
947bb88f
TT
4602010-05-26 Tom Tromey <tromey@redhat.com>
461
462 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
463 (struct dwarf2_loclist_baton) <data>: Likewise.
464 * dwarf2loc.c (find_location_expression): Constify return type.
465 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
466 (dwarf2_loc_desc_needs_frame): Likewise.
467 (loclist_read_variable): Constify.
468 (loclist_describe_location): Likewise.
469 (loclist_tracepoint_var_ref): Likewise.
470
0d45f56e
TT
4712010-05-25 Tom Tromey <tromey@redhat.com>
472
473 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
474 (dwarf_expr_frame_base_1): Likewise.
475 (read_pieced_value): Update.
476 (needs_frame_frame_base): Constify.
477 (dwarf2_tracepoint_var_loc): Likewise.
478 (dwarf2_tracepoint_var_access): Likewise.
479 (locexpr_describe_location_piece): Likewise.
480 (locexpr_describe_location_1): Likewise.
481 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
482 Constify.
483 (data): Now const.
484 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
485 (dwarf_expr_eval, read_uleb128, read_sleb128)
486 (dwarf2_read_address): Update.
487 * dwarf2expr.c (dwarf_expr_eval): Constify.
488 (read_uleb128): Likewise.
489 (read_sleb128): Likewise.
490 (dwarf2_read_address): Likewise.
491 (require_composition): Likewise.
492 (execute_stack_op): Likewise.
493 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
494 "const gdb_byte *".
495 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
496 Now const.
497 (no_get_frame_base): Constify.
498 (execute_stack_op): Likewise.
499 (execute_cfa_program): Likewise.
500 (read_encoded_value): Likewise.
501
07ca107c
DE
5022010-05-25 Doug Evans <dje@google.com>
503
e34838f0
DE
504 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
505
01f69b38
DE
506 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
507 * event-loop.c: ... here.
508 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
509 `error' for clarity.
510 (tui_getc): Pass correct value for `error' parameter to
511 tui_readline_output.
512
07ca107c
DE
513 Add python gdb.GdbError and gdb.string_to_argv.
514 * NEWS: Document them.
515 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
516 the exception is gdb.GdbError. Print a second traceback if there's
517 an error computing the error message.
518 (gdbpy_string_to_argv): New function.
519 * python/py-utils.c (gdbpy_obj_to_string): New function.
520 (gdbpy_exception_to_string): New function.
521 * python/python-internal.h (gdbpy_string_to_argv): Declare.
522 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
523 (gdbpy_gdberror_exc): Declare.
524 * python/python.c (gdbpy_gdberror_exc): New global.
525 (_initialize_python): Initialize gdbpy_gdberror_exc and create
526 gdb.GdbError.
527 (GdbMethods): Add string_to_argv.
528
5572ce1f
PM
5292010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
530
531 * windows-nat.c (display_selector): Call GetLastError to give better
532 failure explanation.
533
acd5838a
PA
5342010-05-24 Pedro Alves <pedro@codesourcery.com>
535
536 * config.in: Regenerate.
537
b26a4dcb
JK
5382010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
539
540 Code cleanup.
541 * target.c (push_target): Return only void. Remove the return value
542 comment.
543 * target.h (push_target): Return only void.
544
f434ba03
PA
5452010-05-23 Pedro Alves <pedro@codesourcery.com>
546
547 Update gnulib from latest git.
548 (250b80067c1e1d8faa0c42fb572f721975b929c5)
549
550 * gnulib/memcmp.c: Removed.
551 * gnulib/memchr.valgrind: New.
552 * gnulib/stddef.in.h: New.
553 * gnulib/Makefile.am: Updated.
554 * gnulib/memchr.c: Updated.
555 * gnulib/memmem.c: Updated.
556 * gnulib/stdint.in.h: Updated.
557 * gnulib/str-two-way.h: Updated.
558 * gnulib/string.in.h: Updated.
559 * gnulib/wchar.in.h: Updated.
560
561 * gnulib/extra/link-warning.h: Removed.
562 * gnulib/extra/c++defs.h: New.
563 * gnulib/extra/warn-on-use.h: New.
564 * gnulib/extra/arg-nonnull.h: Updated.
565
566 * gnulib/m4/extensions.m4: Updated.
567 * gnulib/m4/gnulib-cache.m4: Updated.
568 * gnulib/m4/gnulib-common.m4: Updated.
569 * gnulib/m4/gnulib-comp.m4: Updated.
570 * gnulib/m4/gnulib-tool.m4: Updated.
571 * gnulib/m4/include_next.m4: Updated.
572 * gnulib/m4/longlong.m4: Updated.
573 * gnulib/m4/memchr.m4: Updated.
574 * gnulib/m4/memmem.m4: Updated.
575 * gnulib/m4/stdint.m4: Updated.
576 * gnulib/m4/string_h.m4: Updated.
577 * gnulib/m4/memcmp.m4: Removed.
578 * gnulib/m4/onceonly_2_57.m4: Removed.
579 * gnulib/m4/00gnulib.m4: New.
580 * gnulib/m4/mmap-anon.m4: New.
581 * gnulib/m4/multiarch.m4: New.
582 * gnulib/m4/onceonly.m4: New.
583 * gnulib/m4/stddef_h.m4: New.
584 * gnulib/m4/warn-on-use.m4: New.
585 * gnulib/m4/wchar.m4: Removed.
586 * gnulib/m4/wchar_h.m4: New.
587 * gnulib/m4/wchar_t.m4: New.
588 * gnulib/m4/wint_t.m4: New.
589
590 * aclocal.m4: Regenerate.
591 * config.in: Likewise.
592 * configure: Likewise.
593 * gnulib/Makefile.in: Likewise.
594
d3b1e874
TT
5952010-05-21 Tom Tromey <tromey@redhat.com>
596
597 * dwarf2loc.c (extract_bits_primitive): New function.
598 (extract_bits): Likewise.
599 (insert_bits): Likewise.
600 (copy_bitwise): Likewise.
601 (read_pieced_value): Do all operations in bits.
602 (write_pieced_value): Likewise.
603 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
604 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
605 Always use xrealloc to resize piece array.
606 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
607 <DW_OP_piece>: Update.
608 <DW_OP_bit_piece>: New case.
609
cb826367
TT
6102010-05-21 Tom Tromey <tromey@redhat.com>
611
612 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
613 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
614 * dwarf2expr.h (enum dwarf_value_location)
615 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
616 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
617 (add_piece): Handle empty piece.
618 (execute_stack_op) <DW_OP_piece>: Handle
619 DWARF_VALUE_OPTIMIZED_OUT.
620
74de6778
TT
6212010-05-21 Tom Tromey <tromey@redhat.com>
622
623 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
624 evaluate_subexp, not evaluate_subexp_with_coercion.
625
f346a30d
PM
6262010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
627
628 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
629 attribute.
630
afd74c5f
TT
6312010-05-21 Tom Tromey <tromey@redhat.com>
632
633 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
634 offset.
635 (write_pieced_value): Likewise.
636
90e7c2c5
PM
6372010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
638
639 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
640 and DW_TAG_volatile_type.
641 (new_symbol): Likewise.
642
8148cf8d
PM
6432010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
644
645 * p-valprint.c (pascal_val_print): Call get_array_bounds
646 to obtain the number of elements in an array.
647
3a1d4620
DE
6482010-05-19 Doug Evans <dje@google.com>
649
0bf0f8c4
DE
650 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
651
3a1d4620
DE
652 * python.c (source_python_script): Add comment.
653 (source_python_script_for_objfile): Remove unnecessary call to
654 gdbpy_print_stack.
655
dc21167c
JK
6562010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
657 Sergio Durigan Junior <sergiodj@redhat.com>
658
659 Code cleanup.
660 * parse.c (exp_iterate): Use operator_length wrapper function.
661
5b4ee69b
MS
6622010-05-18 Michael Snyder <msnyder@vmware.com>
663
664 * ada-lang.c: White space.
665 * ada-typeprint.c: White space.
666 * ada-valprint.c: White space.
667 * addrmap.c: White space.
668 * auxv.c: White space.
669 * ax-gdb.c: White space.
670
e17c9e56
HZ
6712010-05-18 Hui Zhu <teawater@gmail.com>
672
673 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
674 for oldfp.
675 (inferior_call_waitpid): Move make_cleanup out of check.
676 Check the return of waitpid.
677 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
678
a109c7c1
MS
6792010-05-17 Michael Snyder <msnyder@vmware.com>
680
1c5313c5
MS
681 * tui/tui.c: White space.
682 * tui/tui-data.c: White space.
683 * tui/tui-disasm.c: White space.
684 * tui/tui-file.c: White space.
685 * tui/tui-interp.c: White space.
686 * tui/tui-main.c: White space.
687 * tui/tui-out.c: White space.
688 * tui/tui-regs.c: White space.
689 * tui/tui-source.c: White space.
690 * tui/tui-stack.c: White space.
691 * tui/tui-win.c: White space.
692 * tui/tui-winsource.c: White space.
693
f4a14ae6
MS
694 * procfs.c: White space.
695
d59b6f6c
MS
696 * python/py-auto-load.c: White space.
697 * python/py-block.c: White space.
698 * python/py-breakpoint.c: White space.
699 * python/py-cmd.c: White space.
700 * python/py-function.c: White space.
701 * python/py-lazy-string.c: White space.
702 * python/py-objfile.c: White space.
703 * python/py-param.c: White space.
704 * python/py-prettyprint.c: White space.
705 * python/py-progspace.c: White space.
706 * python/py-symtab.c: White space.
707 * python/python.c: White space.
708 * python/py-type.c: White space.
709 * python/py-utils.c: White space.
710 * python/py-value.c: White space.
711
102040f0
MS
712 * mi/mi-cmd-break.c: White space.
713 * mi/mi-cmd-env.c: White space.
714 * mi/mi-cmds.c: White space.
715 * mi/mi-cmd-stack.c: White space.
716 * mi/mi-cmd-var.c: White space.
717 * mi/mi-console.c: White space.
718 * mi/mi-getopt.c: White space.
719 * mi/mi-interp.c: White space.
720 * mi/mi-main.c: White space.
721 * mi/mi-out.c: White space.
722 * mi/mi-parse.c: White space.
723
cdb27c12
MS
724 * cli/cli-cmds.c: White space.
725 * cli/cli-decode.c: White space.
726 * cli/cli-dump.c: White space.
727 * cli/cli-interp.c: White space.
728 * cli/cli-logging.c: White space.
729 * cli/cli-script.c: White space.
730 * cli/cli-setshow.c: White space.
731
a109c7c1
MS
732 * valarith.c: White space.
733 * valops.c: White space.
734 * valprint.c: White space.
735 * value.c: White space.
736 * varobj.c: White space.
737 * xcoffread.c: White space.
738 * xml-support.c: White space.
739 * xml-tdesc.c: White space.
740
3872d37d
AS
7412010-05-17 Andreas Schwab <schwab@redhat.com>
742
743 PR gdb/11092
744 * c-lang.c (c_printstr): Compute real length of NUL terminated
745 string at first.
746
0cce5bd9
JB
7472010-05-17 Joel Brobecker <brobecker@adacore.com>
748
749 * parse.c (parse_exp_in_context): When block is not NULL, use
750 its associated language to parse the expression instead of
751 the current_language.
752
5f19d646
JB
7532010-05-17 Joel Brobecker <brobecker@adacore.com>
754
755 * jv-lang.c (java_lookup_class): Remove commented out code.
756 (type_from_class): Likewise.
757 (java_op_print_tab): Remove commented-out elements.
758
28c85d6c
JB
7592010-05-17 Joel Brobecker <brobecker@adacore.com>
760
761 * ada-lang.c (to_fixed_range_type): The the raw index type as
762 argument instead of the raw type name. Remove orig_type parameter.
763 Update calls throughout.
764 (ada_fixup_array_indexes_type): New function.
765 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
766 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
767 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
768 Remove name parameter.
769 (print_array_type): Add call to ada_fixup_array_indexes_type.
770 Update calls to print_range_type.
771 (ada_print_type): Update calls to print_range_type.
772
d09039dd
PM
7732010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
774
775 * dwarf2read.c (read_set_type): Set type length if
776 DW_AT_byte_size attribute is present.
777
7a081a30
PM
7782010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
779
780 * p-valprint.c (pascal_val_print): Handle set type if range limits
781 are undefined but size is known.
782
77382aee
PA
7832010-05-17 Pedro Alves <pedro@codesourcery.com>
784
785 * procfs.c: Reformat.
786
433759f7
MS
7872010-05-16 Michael Snyder <msnyder@vmware.com>
788
5d502164
MS
789 * target.c: White space.
790 * target-descriptions.c: White space.
791 * target-memory.c: White space.
792 * thread.c: White space.
793 * top.c: White space.
794 * tracepoint.c: White space.
795 * trad-frame.c: White space.
796 * tramp-frame.c: White space.
797 * ui-file.c: White space.
798 * ui-out.c: White space.
799 * user-regs.c: White space.
800 * utils.c: White space.
801
433759f7
MS
802 * scm-exp.c: White space.
803 * scm-lang.c: White space.
804 * scm-valprint.c: White space.
805 * sentinel-frame.c: White space.
806 * ser-base.c: White space.
807 * ser-go32.c: White space.
808 * serial.c: White space.
809 * ser-mingw.c: White space.
810 * ser-pipe.c: White space.
811 * ser-tcp.c: White space.
812 * ser-unix.c: White space.
813 * solib.c: White space.
814 * solib-darwin.c: White space.
815 * solib-frv.c: White space.
816 * solib-irix.c: White space.
817 * solib-osf.c: White space.
818 * solib-pa64.c: White space.
819 * solib-som.c: White space.
820 * solib-spu.c: White space.
821 * solib-svr4.c: White space.
822 * solib-target.c: White space.
823 * source.c: White space.
824 * stabsread.c: White space.
825 * stack.c: White space.
826 * std-regs.c: White space.
827 * symfile.c: White space.
828 * symmisc.c: White space.
829 * symtab.c: White space.
830
dd304d53
MS
8312010-05-16 Michael Snyder <msnyder@vmware.com>
832
833 * source.c (_initialize_source): Add "rev" as an abbreviation
834 for the "reverse-search" command.
835
a744cf53
MS
8362010-05-16 Michael Snyder <msnyder@vmware.com>
837
123f5f96
MS
838 * record.c: White space.
839 * regcache.c: White space.
840 * reggroups.c: White space.
841 * remote-fileio.c: White space.
842 * remote-m32r-sdi.c: White space.
843 * remote-mips.c: White space.
844 * remote-sim.c: White space.
a744cf53
MS
845 * remote.c: White space.
846 (process_g_packet): Remove orphan braces.
847
b8d56208
MS
8482010-05-15 Michael Snyder <msnyder@vmware.com>
849
ad3bbd48
MS
850 * parse.c: White space.
851 * p-lang.c: White space.
852 * posix-hdep.c: White space.
853 * printcmd.c: White space.
854 * progspace.c: White space.
855 * prologue-value.c: White space.
856 * psymtab.c: White space.
857 * p-typeprint.c: White space.
858 * p-valprint.c: White space.
859
5cc80db3
MS
860 * objc-lang.c: White space.
861 * objfiles.c: White space.
862 * observer.c: White space.
863 * osabi.c: White space.
864 * osdata.c: White space.
865
b8d56208
MS
866 * m2-lang.c: White space.
867 * m2-valprint.c: White space.
868 * macrocmd.c: White space.
869 * macroexp.c: White space.
870 * macroscope.c: White space.
871 * macrotab.c: White space.
872 * main.c: White space.
873 * maint.c: White space.
874 * mdebugread.c: White space.
875 * memattr.c: White space.
876 * minsyms.c: White space.
877 * monitor.c: White space.
878
9a619af0
MS
8792010-05-14 Michael Snyder <msnyder@vmware.com>
880
e0881a8e
MS
881 * jv-lang.c: White space.
882 * jv-typeprint.c: White space.
883 * jv-valprint.c: White space.
884 * language.c: White space.
885 * libunwind-frame.c: White space.
886 * linespec.c: White space.
887 * linux-nat.c: White space.
888 * linux-record.c: White space.
889 * linux-thread-db.c: White space.
890
abbb1732
MS
891 * infcall.c: White space.
892 * inf-child.c: White space.
893 * infcmd.c: White space.
894 * inferior.c: White space.
895 * inf-loop.c: White space.
896 * inflow.c: White space.
897 * inline-frame.c: White space.
898 * interps.c: White space.
899
d8734c88
MS
900 * gcore.c: White space.
901 * gdb.c: White space.
902 * gdbtypes.c: White space.
903 * gnu-nat.c: White space.
904 * gnu-v2-abi.c: White space.
905 * gnu-v3-abi.c: White space.
906
bb9bcb69
MS
907 * findcmd.c: White space.
908 * findvar.c: White space.
909 * fork-child.c: White space.
910 * frame-base.c: White space.
911 * frame.c: White space.
912 * frame-unwind.c: White space.
913 * f-valprint.c: White space.
914
d7f9d729
MS
915 * elfread.c: White space.
916 * environ.c: White space.
917 * eval.c: White space.
918 * event-loop.c: White space.
919 * event-top.c: White space.
920 * exceptions.c: White space.
921 * exec.c: White space.
922 * expprint.c: White space.
923
9a619af0
MS
924 * dbxread.c: White space.
925 * dcache.c: White space.
926 * disasm.c: White space.
927 * doublest.c: White space.
928 * dsrec.c: White space.
929 * dummy-frame.c: White space.
930 * dwarf2expr.c: White space.
931 * dwarf2-frame.c: White space.
932 * dwarf2loc.c: White space.
933 * dwarf2read.c: White space.
934
88d4aea7
PM
9352010-05-14 Phil Muldoon <pmuldoon@redhat.com>
936
937 PR python/11482
938
939 * python/py-value.c (valpy_hash): New function.
940 (value_object_type): Register valpy_hash.
941
7a298875
HZ
9422010-05-14 Hui Zhu <teawater@gmail.com>
943 Michael Snyder <msnyder@vmware.com>
944
945 * linux-fork.c (gdbthread.h): New include.
946 (fork_info): Add parent_ptid.
947 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
948 functions.
949 (delete_checkpoint_command): Call inferior_call_waitpid.
950 (checkpoint_command): Set parent_ptid.
951
c14feecc
MS
9522010-05-13 Michael Snyder <msnyder@vmware.com>
953
6595d32b
MS
954 * dictionary.c: Re-indent to GNU coding standard.
955
c5504eaf
MS
956 * charset.c: White space.
957 * c-lang.c: White space.
958 * cli-out.c: White space.
959 * coffread.c: White space.
960 * complaints.c: White space.
961 * completer.c: White space.
962 * corefile.c: White space.
963 * corelow.c: White space.
964 * cp-abi.c: White space.
965 * cp-namespace.c: White space.
966 * cp-support.c: White space.
967 * cp-valprint.c: White space.
968 * c-typeprint.c: White space.
969 * c-valprint.c: White space.
cc59ec59
MS
970 * blockframe.c: White space.
971 * breakpoint.c: White space.
972 * buildsym.c: White space.
973 * blockframe.c: White space.
b6de9da4 974 * bcache.c: White space.
05c547f6
MS
975 * gdbarch.sh: White space, add blank lines.
976 * arch-utils.c: Ditto.
977 * gdbarch.c: Regenerate.
1c4d3f96 978 * frame.c: White space, add blank lines.
f89b749f
MS
979 * stack.c: White space, add blank lines.
980 (initialize_stack): Remove long-dead code.
c14feecc 981
a2d33775
JK
9822010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
983
984 Code cleanup.
985 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
986 (locexpr_read_variable, loclist_read_variable): Update the callers.
987
33ac96f0
JK
9882010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
989
990 Code cleanup.
991 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
992 Remove check of NULL returned by tag_type_to_type.
993 (die_containing_type): Remove variable type. Remove type_die variable
994 initialization. Remove check of NULL returned by tag_type_to_type.
995
f5a010c0
PM
9962010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
997
998 PR exp/11530.
999 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1000 names of unnamed structures or unions.
1001
bf701c2c
PM
10022010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1003
1004 * procfs.c (proc_watchpoint_address): New function.
1005 (procfs_stopped_by_watchpoint): Remove useless check after
1006 find_procinfo_or_die call.
1007 (procfs_stopped_data_address): New function.
1008 (procfs_use_watchpoints): Register new watchpoint related function.
1009
d02691ef
TT
10102010-05-11 Tom Tromey <tromey@redhat.com>
1011
1012 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1013
e0627e85
MS
10142010-05-10 Michael Snyder <msnyder@vmware.com>
1015
1016 * utils.c: White space cleanup.
1017
cc73bb8c
TT
10182010-05-10 Tom Tromey <tromey@redhat.com>
1019
1020 * eval.c (ptrmath_type_p): Add 'lang' argument.
1021 (evaluate_subexp_standard): Update.
1022 (evaluate_subexp_with_coercion): Update.
1023 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1024
c02866a0
MS
10252010-05-10 Michael Snyder <msnyder@vmware.com>
1026
1027 * utils.c (do_fclose_cleanup) Restore local variable.
1028
06280d23
DE
10292010-05-09 Doug Evans <dje@google.com>
1030
1031 * record.c (init_record_core_ops): Rename record_core to record-core.
1032
fa07e785
JB
10332010-05-08 Joel Brobecker <brobecker@adacore.com>
1034
1035 Implement task switching on pa-hpux.
1036 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1037 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1038
4c680d1d
PM
10392010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1040
1041 * valops.c (find_overload_match): Add missing i18n markup.
1042
28e176a6
PM
10432010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1044
1045 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1046
48cb83fd
JK
10472010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1050 list for the obconcat call.
1051 * mdebugread.c (parse_symbol): Likewise.
1052 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1053 Likewise.
1054 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1055 New variable ap. Remove variables len and val.
1056 * symfile.h (obconcat): Likewise for the prototype.
1057
f92adf3c
MS
10582010-05-07 Michael Snyder <msnyder@vmware.com>
1059
1060 * python/python.c (execute_gdb_command): Remove unused variables.
1061 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1062 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1063 Remove unused variable.
1064 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1065 (cmdpy_completer): Remove unused variable.
1066 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1067 * python/py-function.c (fnpy_call): Remove unused variable.
1068 * python/py-objfile.c (objfile_to_objfile_object):
1069 Remove unused variable.
1070 * python/py-param.c (parmpy_init): Remove unused variable.
1071 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1072 Remove unused variable.
1073 (gdbpy_default_visualizer): Remove unused variable.
1074 * python/py-progspace.c (pspace_to_pspace_object):
1075 Remove unused variable.
1076 * python/py-symtab.c (symtab_and_line_to_sal_object):
1077 Remove unused variable.
1078 * python/py-type.c (typy_template_argument):
1079 Remove unused variable.
1080 * python/py-value.c (valpy_string): Remove unused variable.
1081 (convert_value_from_python): Remove unused variables.
1082
d160942f
MS
10832010-05-07 Michael Snyder <msnyder@vmware.com>
1084
1085 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1086 and use it to compute variable 't1'.
1087
587542ab
JB
10882010-05-07 Joel Brobecker <brobecker@adacore.com>
1089
1090 * ada-lang.c (assign_aggregate): Remove unused variable.
1091
7322dca9
SW
10922010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1093
1094 PR C++/7943:
1095 * valops.c (find_overload_match): Handle fsym == NULL case.
1096 Add int no_adl argument.
1097 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1098 when appropriate.
1099 Add int no_adl argument.
1100 (find_oload_champ_namespace): Add int no_adl argument.
1101 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1102 expression.
1103 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1104 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1105 Evaluate arguments and use them to perform ADL lookup.
1106 Pass no_adl argument to find_overload_match.
1107 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1108 * cp-support.h: Added prototype for
1109 make_symbol_overload_list_namespace.
1110 * cp-support.c (make_symbol_overload_list_namespace): New function.
1111 (make_symbol_overload_list_adl_namespace): New function.
1112 (make_symbol_overload_list_adl): New function.
1113 (make_symbol_overload_list_using): Moved code to add function to
1114 overload set to make_symbol_overload_list_namespace.
1115 * c-exp.y: create UNKNOWN_CPP_NAME token.
1116 Add parse rule for ADL functions.
1117 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1118
3f1f6884
JK
11192010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1120
1121 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1122 sentinel.
1123
3caf13b4
JB
11242010-05-07 Joel Brobecker <brobecker@adacore.com>
1125
1126 Implement task switching on solaris targets.
1127 * sol-thread.c (thread_db_find_thread_from_tid)
1128 (sol_get_ada_task_ptid): New functions.
1129 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1130
94b0dee1
PA
11312010-05-07 Pedro Alves <pedro@codesourcery.com>
1132
1133 * remote.c (remote_query_supported_append): Use reconcat.
1134 (remote_query_supported): Install a cleanup. Use reconcat.
1135
1408c251
PA
11362010-05-07 Pedro Alves <pedro@codesourcery.com>
1137
1138 * gdbarch.sh (qsupported): Delete.
1139 * gdbarch.h, gdbarch.c: Regenerate.
1140 * remote.c (remote_query_supported): Remove use of
1141 gdbarch_qsupported.
1142
f8e50cfe
SDJ
11432010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1144
1145 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1146 function.
1147
8ea13695
MS
11482010-05-06 Michael Snyder <msnyder@vmware.com>
1149
c6913b7d
MS
1150 * xml-support.c (xinclude_start_include): Delete unused variable.
1151 (xml_process_xincludes): Delete unused variable.
1152 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1153 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1154 (tdesc_find_arch_register): Delete unused variable.
1155 (tdesc_use_registers): Delete unused variable.
1156 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1157 * inferior.c (print_inferior): Delete unused variable.
1158 * record.c (record_open_1): Delete unused variable.
1159 (record_restore): Delete unused variable.
1160 (cmd_record_save): Delete unused variable.
1161 * gcore.c (derive_heap_segment): Delete unused variable.
1162 (objfile_find_memory_regions): Use unused variable.
1163 * jit.c (jit_inferior_init): Delete unused variable.
1164 * progspace.c (clone_program_space): Delete unused variable.
1165 (pspace_empty_p): Delete unused variable.
1166
1c5465ac
MS
1167 * frame-unwind.c (frame_unwind_find_by_frame):
1168 Delete unused variable.
1169 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1170 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1171 (method_name_from_physname): Delete unused variable.
1172 (cp_func_name): Delete unused variable.
1173 (cp_validate_operator): Delete unused variable.
1174 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1175 Delete unused variable.
1176 * trad-frame.c (trad_frame_get_prev_register):
1177 Delete unused variable.
1178 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1179
1be757cf
MS
1180 * serial.c (serial_for_fd): Delete unused variable.
1181 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1182 * top.c (execute_command): Delete unused variable.
1183 (init_main): Delete unused variable.
1184 * utils.c (do_fclose_cleanup): Delete unused variable.
1185 (do_all_inferior_continuations): Delete unused variable.
1186 (initialize_utils): Delete unused variable.
1187 (internal_problem_mode): Delete unused global.
1188 * frame.c (get_prev_frame): Delete unused global.
1189 (get_frame_locals_address): Delete unused global.
1190 (get_frame_args_address): Delete unused global.
1191
9216103f
MS
1192 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1193 (pascal_type_print_varspec_prefix): Delete unused variable.
1194 * f-typeprint.c (f_type_print_base): Delete unused variable.
1195 (f_type_print_varspec_suffix): Delete unused variable.
1196 * m2-typeprint.c (m2_print_type): Delete unused variable.
1197 (m2_long_set): Delete unused variable.
1198 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1199 * d-valprint.c (dynamic_array_type): Delete unused variable.
1200 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1201 Delete unused variable.
1202 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1203 * m2-valprint.c (m2_val_print): Delete unused variable.
1204
34fa1d9d
MS
1205 * ui-out.c (ui_out_field_int): Delete unused variable.
1206 (ui_out_field_fmt_int): Delete unused variable.
1207 * varobj.c (varobj_list_children): Delete unused variable.
1208 (varobj_set_value): Delete unused variable.
1209 (install_new_value_visualizer): Delete unused variable.
1210 (varobj_set_visualizer): Delete unused variable.
1211 (varobj_update): Delete unused variable.
1212 (varobj_editable_p): Delete unused variable.
1213 (c_value_of_root): Delete unused variable.
1214 (cplus_describe_child): Delete unused variable.
1215
b5385fc0
MS
1216 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1217 (decode_constrained_packed_array_type): Delete unused variable.
1218 (add_defn_to_vec): Delete unused variable.
1219 (symbol_completion_match): Delete unused variable.
1220 (value_tag_from_contents_and_address): Delete unused variable.
1221 (ada_evaluate_subexp): Delete unused variable.
1222 * c-lang.c (classify_type): Delete unused variable.
1223 * f-lang.c (f_printstr): Delete unused variable.
1224 * objc-lang.c (objc_printstr): Delete unused variable.
1225 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1226 * jv-lang.c (type_from_class): ifdef unused variable.
1227 (java_class_name_from_physname): Delete unused variable.
1228 * m2-lang.c (m2_printstr): Delete unused variable.
1229
4fc06681
MS
1230 * objfiles.c (objfile_relocate): Delete unused variable.
1231 * maint.c (_initialize_maint_cmds): Delete unused variable.
1232 * demangle.c (_initialize_demangler): Delete unused variable.
1233 * corefile.c (reopen_exec_file): Delete unused variable.
1234 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1235 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1236
6b4398f7
MS
1237 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1238 * memattr.c (mem_delete): Delete unused variable.
1239 (invalidate_target_mem_regions): Delete unused variable.
1240 * mem-break.c (default_memory_insert_breakpoint):
1241 Delete unused variable.
1242 * target.c (target_get_osdata): Delete unused variable.
1243 * parse.c (length_of_subexp): Delete unused variable.
1244 (prefixify_subexp): Delete unused variable.
1245 (exp_iterate): Delete unused variable.
1246 * reverse.c (delete_bookmark_command): Delete unused variable.
1247
308d96ed
MS
1248 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1249 * macroexp.c (gather_arguments): Delete unused variable.
1250 (substitute_args): Delete unused variable.
1251 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1252 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1253 (_initialize_gdbarch): Delete unused variable.
1254 * gdbarch.c, gdbarch.h: Regenerate.
1255 * arch-utils.c (initialize_current_architecture):
1256 Delete unused variable.
1257 (_initialize_gdbarch_utils): Delete unused variable.
1258 * gdbtypes.c (make_cv_type): Delete unused variable.
1259 (make_type_with_address_space): Delete unused variable.
1260
167e4384
MS
1261 * linespec.c (decode_compound): Delete unused variable.
1262 * dictionary.c (iterator_next_hashed): Delete unused variable.
1263 * infcall.c (call_function_by_hand): Delete unused variable.
1264 * infcmd.c (step_1): Delete unused variable.
1265 (registers_info): Delete unused variable.
1266 (attach_command): Delete unused variable.
1267 * infrun.c (follow_exec): Delete unused variable.
1268 (handle_step_into_function_backwards): Delete unused variable.
1269 (_initialize_infrun): Delete unused variable.
1270 * stack.c (parse_frame_specification_1): Delete unused variable.
1271 (frame_info): Delete unused variable.
1272 (backtrace_command_1): Delete unused variable.
1273 (catch_info): Delete unused variable.
1274
8f78b329
MS
1275 * eval.c (evaluate_subexp_standard): Delete unused variable.
1276 * valops.c (value_cast_pointers): Delete unused variable.
1277 (value_dynamic_cast): Delete unused variable.
1278 (value_array): Delete unused variable.
1279 (find_overload_match): Delete unused variable.
1280 * valarith.c (value_subscript): Delete unused variable.
1281 (value_binop): Delete unused variable.
1282 * valprint.c (_initialize_valprint): Delete unused variable.
1283 * printcmd.c (print_command_1): Delete unused variable.
1284 (address_info): Delete unused variable.
1285 (printf_command): Delete unused variable.
1286
8ea13695
MS
1287 * auxv.c (target_auxv_search): Delete unused variable.
1288 * blockframe.c (get_frame_block): Delete unused variable.
1289 * regcache.c (regcache_cpy): Delete unused variable.
1290 (regcache_cpy_no_passthrough): Delete unused variable.
1291 * charset.c (wchar_iterate): Delete unused variable.
1292 (find_charset_names): Delete unused variable.
1293 (_initialize_charset): Delete unused variable.
1294 * disasm.c (do_mixed_source_and_assembly):
1295 Delete unused variable.
1296 * source.c (set_default_source_symtab_and_line):
1297 Delete unused variable.
1298 (set_substitute_path_command): Delete unused variable.
1299 * value.c (preserve_values): Delete unused variable.
1300 (value_from_double): Delete unused variable.
1301
afe38095
MS
13022010-05-05 Michael Snyder <msnyder@vmware.com>
1303
952a6d41
MS
1304 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1305 (find_last_source_symtab_from_partial): Delete unused variable.
1306 * symfile.c (place_section): Delete unused variable.
1307 (default_symfile_offsets): Delete unused variable.
1308 (get_debug_link_info): Delete unused variable.
1309 (find_separate_debug_file_by_debuglink): Delete unused variable.
1310 (add_symbol_file_command): Delete unused variable.
1311 (symfile_find_segment_sections): Delete unused variable.
1312 * symmisc.c (free_symtab): Delete unused variable.
1313 (dump_symtab_1): Delete unused variable.
1314 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1315 (find_pc_sect_symtab): Delete unused variable.
1316 (skip_prologue_using_lineinfo): Delete unused variable.
1317 (sources_info): Delete unused variable.
1318 (completion_list_add_name): Delete unused variable.
1319 (expand_line_sal): Delete unused variable.
1320
afe38095
MS
1321 * breakpoint.c (validate_commands_for_breakpoint):
1322 Delete unused variables.
1323 (insert_catchpoint): Delete unused variable.
1324 (update_watchpoint): Delete unused variable.
1325 (insert_bp_location): Delete unused variable.
1326 (insert_breakpoint_locations): Delete unused variable.
1327 (remove_breakpoint_1): Delete unused variable.
1328 (software_breakpoint_inserted_here_p): Delete unused variable.
1329 (watchpoints_triggered): Delete unused variable.
1330 (bpstat_check_watchpoint): Delete unused variable.
1331 (bpstat_stop_status): Delete unused variable.
1332 (print_one_breakpoint_location): Delete unused variable.
1333 (allocate_bp_location): Delete unused variable.
1334 (create_breakpoint): Delete unused variable.
1335 (watch_command_1): Delete unused variable.
1336 (catch_exception_command_1): Delete unused variable.
1337 (catch_ada_exception_command): Delete unused variable.
1338 (delete_breakpoint): Delete unused variable.
1339 (breakpoint_re_set_one): Delete unused variable.
1340 (do_enable_breakpoint): Delete unused variable.
1341
eda5a4d7
PA
13422010-05-06 Pedro Alves <pedro@codesourcery.com>
1343
1344 * amd64-tdep.c: Include disasm.h.
1345 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1346 (amd64_insn_length): Moved to disasm.c and renamed.
1347 (fixup_riprel): Adjust.
1348 * disasm.c (do_ui_file_delete): New.
1349 (gdb_insn_length): New.
1350 (gdb_buffered_insn_length_fprintf)
1351 (gdb_buffered_insn_length_init_dis)
1352 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1353 renamed.
1354 * disasm.h (gdb_insn_length): Declare.
1355 (gdb_buffered_insn_length): Declare.
1356
02357a4a
PA
13572010-05-06 Pedro Alves <pedro@codesourcery.com>
1358
1359 * remote.c (clear_threads_parsing_context): New.
1360 (remote_threads_info): Delete unused null_cleanup. Install a
1361 cleanup to clear the threads_parsing_context in case parsing
1362 throws.
1363
8c5630cb
MS
13642010-05-05 Michael Snyder <msnyder@vmware.com>
1365
1366 * c-exp.y (parse_string_or_char): Delete unused variable.
1367 (c_lex): Delete unused variable.
1368 * cp-name-parser.y (cpname_lex): Delete unused variable.
1369 * ada-exp.y (find_primitive_type): Delete unused variable.
1370 (write_var_or_type): Delete unused variable.
1371 * jv-exp.y (java_parse): Delete unused variable.
1372 (push_expression_name): Delete unused variable.
1373 * p-exp.y (pascal_lex): Delete unused variable.
1374
46c162d4
PA
13752010-05-05 Pedro Alves <pedro@codesourcery.com>
1376
1377 * remote.c (remote_threads_info): Really revert previous previous
1378 change.
1379
0043e6a5
MS
13802010-05-05 Michael Snyder <msnyder@vmware.com>
1381
fa238c03
MS
1382 * elfread.c (elf_symtab_read): Delete unused variable.
1383 (find_separate_debug_file_by_buildid): Delete unused variables.
1384 (elf_symfile_read): Delete unused variable.
1385
1386 * coffread.c (coff_symfile_read): Delete unused variables.
1387
1388 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1389 (read_pe_exported_syms): Delete unused variable.
1390
1391 * stabsread.c (define_symbol): Delete unused variable.
1392
1393 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1394 (process_psymtab_comp_unit): Delete unused variable.
1395 (dwarf2_build_psymtabs_hard): Delete unused variable.
1396 (load_partial_comp_unit): Delete unused variable.
1397 (create_all_comp_units): Delete unused variable.
1398 (scan_partial_symbols): Delete unused variable.
1399 (add_partial_symbol): Delete unused variable.
1400 (add_partial_namespace): Delete unused variable.
1401 (add_partial_enumeration): Delete unused variable.
1402 (load_full_comp_unit): Delete unused variable.
1403 (process_full_comp_unit): Delete unused variable.
1404 (read_file_scope): Delete unused variable.
1405 (read_type_unit_scope): Delete unused variable.
1406 (process_structure_scope): Delete unused variable.
1407 (process_enumeration_scope): Delete unused variable.
1408 (read_tag_ptr_to_member_type): Delete unused variable.
1409 (read_typedef): Delete unused variable.
1410 (read_partial_die): Delete unused variable.
1411 (decode_locdesc): Delete unused variable.
1412 (zeroed_partial_die): Delete unused global variable.
1413
0043e6a5
MS
1414 * tui/tui-interp.c (_initialize_tui_interp):
1415 Delete unused variable.
1416 * tui/tui-regs.c tui_display_registers_from):
1417 Delete unused variable.
1418 (tui_check_register_values): Delete unused variable.
1419 (tui_register_format): Delete unused variable.
1420 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1421 * tui/tui-windata.c (tui_display_data_from_line):
1422 Delete unused variables.
1423 (tui_vertical_data_scroll): Delete unused variables.
1424
75721c66
MS
14252010-05-05 Michael Snyder <msnyder@vmware.com>
1426
c31a71f4
MS
1427 * remote.c (remote_threads_info): Revert questionable part of
1428 the previous change.
1429
14302010-05-05 Michael Snyder <msnyder@vmware.com>
1431
1432 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1433 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1434 (mi_cmd_var_list_children): Delete unused variable.
1435 (varobj_update_one): Delete unused variable.
1436 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1437 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1438 Delete unused variable.
1439 (mi_cmd_stack_list_variables): Delete unused variable.
1440 (list_args_or_locals): Delete unused variable.
1441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1442 Delete unused variables.
1443 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1444 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1445 Delete unused variable.
1446 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1447 (mi_cmd_interpreter_exec): Delete unused variable.
1448 (mi_on_normal_stop): Delete unused variable.
1449 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1450 (print_one_inferior): Delete unused variables.
1451 (mi_execute_command): Delete unused variable.
1452 (mi_cmd_execute): Delete unused variable.
1453 (timestamp): Delete unused variable.
1454
1455 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 1456 (restore_binary_file): Delete unused variable.
c31a71f4
MS
1457 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1458 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
1459 (recurse_read_control_structure): Delete unused variable.
1460 (script_from_file): Delete unused variable.
c31a71f4 1461 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
1462 (disassemble_command): Delete unused variable.
1463
1464 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1465 * tracepoint.c (delete_trace_variable_command):
1466 Delete unused variables.
1467 (encode_actions_1): Delete unused variables.
1468 (start_tracing): Delete unused variable.
1469 (trace_status_mi): Delete unused variable.
1470 (tfind_1): Delete unused variable.
1471 (trace_find_pc_command): Delete unused variable.
1472 (trace_find_line_command): Delete unused variables.
1473 (trace_find_range_command): Delete unused variables.
1474 (trace_find_outside_command): Delete unused variables.
1475 (parse_tracepoint_definition): Delete unused variables.
1476 (tfile_fetch_registers): Delete unused variable.
1477
9128a503
MS
1478 * dcache.c (dcache_init): Delete unused variable.
1479 (dcache_info): Delete unused variable.
1480
aa369b55 1481 * remote.c (remote_threads_info): Delete unused variable.
9128a503 1482 (process_stop_reply) :Delete unused variable.
aa369b55
MS
1483 (remote_get_trace_status): Delete unused variables.
1484
9e9547e4
MS
1485 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1486 (thread_from_lwp): Delete unused variable.
1487 (enable_thread_event_reporting): Delete unused variable.
1488 (check_for_thread_db): Delete unused variables.
1489 (thread_db_find_new_threads_2): Delete unused variable.
1490
1491 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1492 (checkpoint_command): Delete unused variable.
1493 (linux_fork_context): Delete unused variables.
1494
fa238c03 1495 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
1496 (linux_tracefork_child): Delete unused variable.
1497 (linux_child_follow_fork): Delete unused variable.
1498 (linux_nat_detach): Delete unused variable.
1499 (linux_handle_extended_wait): Delete unused variable.
1500 (linux_nat_has_pending_sigint): Delete unused variable.
1501 (linux_nat_find_memory_regions): Delete unused variable.
1502 (linux_nat_make_corefile_notes): Delete unused variables.
1503 (linux_nat_info_proc_cmd): Delete unused variable.
1504 (linux_proc_pending_signals): Delete unused variable.
1505 (linux_nat_stop_lwp): Delete unused variables.
1506 (_initialize_linux_nat): Delete unused variable.
1507
fa238c03 1508 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 1509
e0f069a3
MS
1510 * linux-record.c (record_linux_system_call):
1511 Delete unused variables.
1512
789d24f0
MS
1513 * corelow.c (core_xfer_partial): Delete unused variables.
1514
1cd337a5
MS
1515 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1516 (svr4_solib_create_inferior_hook): Add ifdef around
1517 conditionally-used variable declarations.
1518
b00e3f56
MS
1519 * solib.c (solib_find): Delete unused variable.
1520 (free_so_symbols): Delete unused variable.
1521 (info_sharedlibrary_command): Delete unused variable.
1522 (reload_shared_libraries_1): Delete unused variable.
1523 (_initialize_solib): Delete unused variable.
1524
90f62196
MS
1525 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1526 (i386_collect_xstateregset): Delete unused variable.
1527 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1528
75721c66
MS
1529 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1530 Delete unused variable 'type'.
1531
af33db37
JB
15322010-05-05 Joel Brobecker <brobecker@adacore.com>
1533
90f62196 1534 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
1535 ada-lang.c: Remove comment mentioning these macros.
1536 * m2-exp.y: Delete commented out code.
af33db37 1537
0497f5b0
JB
15382010-05-05 Joel Brobecker <brobecker@adacore.com>
1539
1540 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1541 for array types.
1542 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1543
6e39997a
PM
15442010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1545
1546 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1547 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1548 ATTRIBUTE_UNUSED.
1549 (cleanup_kernel_helper_return): Likewise.
1550 * arm-tdep.c (copy_unmodified): Likewise.
1551 (copy_preload): Likewise.
1552 (copy_copro_load_store): Likewise.
1553 (cleanup_branch): Likewise.
1554 (copy_b_bl_blx): Likewise.
1555 (copy_bx_blx_reg): Likewise.
1556 (copy_alu_imm): Likewise.
1557 (copy_alu_reg): Likewise.
1558 (copy_alu_shifted_reg): Likewise.
1559 (cleanup_load): Likewise.
1560 (cleanup_store): Likewise.
1561 (cleanup_block_load_pc): Likewise.
1562 (cleanup_svc): Likewise.
1563 (copy_undef): Likewise.
1564 (copy_unpred): Likewise.
1565 * remote.c (register_remote_support_xml): Likewise.
1566
1412f70b
HZ
15672010-05-05 Hui Zhu <teawater@gmail.com>
1568
1569 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1570
c4f7c687
MK
15712010-05-04 Mark Kettenis <kettenis@gnu.org>
1572
1573 * remote.c (register_remote_support_xml)
1574 (remote_query_supported_append, remote_query_supported): Add cast
1575 to NULL used as sentinel.
1576 * tracepoint.c (tvariables_info_1): Likewise.
1577 * utils.c (add_internal_problem_command): Likewise.
1578
63b4f126
MGD
15792010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1580
1581 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1582 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1583 registers gracefully.
1584
2f1bdd26
MGD
15852010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1586
1587 * exec.c (print_section_info): Display entry point without arch
1588 specific parts.
1589
e1c34c5d
PM
15902010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1591
1592 PR exp/11349.
1593 * printcmd.c (x_command): Only dereference once implicitly for
1594 TYPE_CODE_REF.
1595
ae462839
DE
15962010-05-03 Doug Evans <dje@google.com>
1597
1598 * event-loop.c (gdb_timer): Delete unused global.
1599 (create_timer): Update.
1600
1ac77ea1
JK
16012010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1602
1603 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1604 CURRENT->DECLARATION case.
1605 * cp-support.h (struct using_direct): Provide extended comment.
1606
7c54a108
MK
16072010-05-03 Mark Kettenis <kettenis@gnu.org>
1608
1609 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1610 HPPABSD_SIZEOF_GREGS.
1611 (HPPAOBSD_SIZEOF_FPREGS): New define.
1612 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1613 (hppaobsd_supply_fpregset): New function.
1614 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1615 (hppaobsd_fpregset): New variable.
1616 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1617 (_initialize_hppabsd_tdep): Remove spurious blank line.
1618
278582cb
PM
16192010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1620
1621 PR pascal/11349.
1622 * p-valprint.c (pascal_value_print): Always dereference a value with
1623 type code TYPE_CODE_REF.
1624
f0223081
PA
16252010-05-03 Pedro Alves <pedro@codesourcery.com>
1626
1627 * remote.c (remote_notice_signals): New.
1628 (remote_start_remote): In non-stop mode, update the remote end on
1629 which signals it can silently pass.
1630 (init_remote_ops): Install remote_notice_signals.
1631
c25c4a8b
JK
16322010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1633
1634 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1635 * command.h (error_no_arg): ... here. Remove NORETURN, change
1636 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1637 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1638 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1639 (internal_verror, internal_error, nomem): Remove NORETURN, change
1640 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1641 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1642 (throw_vfatal, throw_error): Remove NORETURN.
1643 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1644 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1645 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1646 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1647 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1648 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1649 NORETURN.
1650 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1651 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1652 ATTRIBUTE_NORETURN.
1653 * target.c (tcomplain): Likewise.
1654 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1655 ATTRIBUTE_NORETURN.
1656 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1657 (internal_error, perror_with_name, nomem): Remove NORETURN.
1658 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1659 ATTRIBUTE_NORETURN.
1660
a0b31db1
JK
16612010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1664 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1665 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1666 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1667 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1668 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1669 * complaints.h (complaint, internal_complaint): Likewise.
1670 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1671 (ATTR_FORMAT): Remove.
1672 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1673 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1674 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1675 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1676 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1677 (internal_error, internal_vwarning, internal_warning, warning)
1678 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1679 * disasm.c (fprintf_disasm): Likewise.
1680 * exceptions.c (throw_it): Likewise.
1681 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1682 (throw_error): Likewise.
1683 * language.h (type_error, range_error): Likewise.
1684 * linespec.c (cplusplus_error): Likewise.
1685 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1686 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1687 * monitor.c (monitor_debug): Likewise.
1688 * parser-defs.h (parser_fprintf): Likewise.
1689 * serial.h (serial_printf): Likewise.
1690 * tui/tui-hooks.c (tui_query_hook): Likewise.
1691 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1692 (uo_message): Likewise.
1693 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1694 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1695 Likewise.
1696 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1697
02a45ac0
PA
16982010-05-02 Pedro Alves <pedro@codesourcery.com>
1699
1700 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1701 (cli_table_header, cli_begin, cli_end, cli_field_int)
1702 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1703 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1704 Delete forward declarations.
1705 (cli_ui_out_impl): Move below the callbacks.
1706 (_initialize_cli_out): Delete.
1707
1915ef4f
PA
17082010-05-02 Pedro Alves <pedro@codesourcery.com>
1709
1710 * README: Use consistent `GDB' and `GDBserver' spellings.
1711
0dfb946f
JK
17122010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1715
4d533103
PA
17162010-05-01 Pedro Alves <pedro@codesourcery.com>
1717
1718 * infrun.c (prepare_for_detach): In non-stop, context switch to
1719 the thread that got the event before handling the event.
1720
705b5767
TT
17212010-04-30 Tom Tromey <tromey@redhat.com>
1722
1723 * symtab.c (symbol_set_names): Fix typo.
1724
3c0ee1a4
PM
17252010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1726
1727 * python/py-param.c (parm_constants): Avoid ARI warning
1728 by adding ARI comment.
1729 (parmpy_init): Likewise.
1730
ea1fae46
PM
17312010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1732
1733 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1734 and created type for re-use.
1735
c24d0242
PM
17362010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1737
1738 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1739
a26d8d11
DE
17402010-04-29 Doug Evans <dje@google.com>
1741
1742 * ser-base.h (reschedule): Delete prototype.
1743 * ser-base.c (reschedule): Make static.
1744
f8624c62
MGD
17452010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1746
1747 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1748 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1749 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1750 EABI.
1751 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1752 use.
1753
e66408ed
PA
17542010-04-29 Pedro Alves <pedro@codesourcery.com>
1755
1756 PR gdb/11557
1757
1758 * regcache.c (registers_changed): Rename to ...
1759 (registers_changed_ptid): ... this, and only delete register cache
1760 entries matching the ptid filter argument.
1761 (registers_changed): Reimplement on top of registers_changed_ptid.
1762 * regcache.h (registers_changed_ptid): Declare.
1763 * target.c (target_resume): Flush register caches.
1764
d7b32ed3
PM
17652010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1766 Tom Tromey <tromey@redhat.com>
1767 Thiago Jung Bauermann <bauerman@br.ibm.com>
1768
1769 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1770 (SUBDIR_PYTHON_SRCS): Likewise.
1771 (py-parameter.o): New rule.
1772 * python/py-parameter.c: New file.
1773 * python/python-internal.h (gdbpy_initialize_parameter)
1774 (gdbpy_parameter, gdbpy_parameter_value)
1775 (gdbpy_parse_command_name): Declare.
1776 * python/py-cmd.c (parse_command_name): Rename to
1777 gdbpy_parse_command_name.
1778 (gdbpy_parse_command_name): Accept a starting list parameter and
1779 use over cmdlist.
1780 (cmdpy_init): Use gdbpy_parse_command_name.
1781 * python/python.c (parameter_to_python): Rename to
1782 gdbpy_parameter_to_python. Accept enum var_types and value.
1783 (gdbpy_parameter): Use gdbpy_parameter_value.
1784 (_initialize_python): Call gdbpy_initialize_parameters.
1785
ce72ce41
MGD
17862010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1787
1788 * MAINTAINERS: Add myself for write after approval privileges.
1789
6aecb9c2
JB
17902010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
1791
1792 D language support.
1793 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1794 (COMMON_OBS): Add d-lang.o d-valprint.o.
1795 (HFILES_NO_SRCDIR): Add d-lang.h.
1796 * NEWS: Mention D language support.
1797 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1798 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1799 * d-lang.c: New file.
1800 * d-lang.h: New file.
1801 * d-valprint.c: New file.
1802 * defs.h (enum language): Add language_d.
1803 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1804 * language.c (binop_result_type, integral_type, character_type)
1805 (string_type, boolean_type, structured_type): Add language_d.
1806 * symfile.c (init_filename_language_table): Add language_d.
1807 * symtab.c: Include d-lang.h.
1808 (symbol_init_language_specific, symbol_find_demangled_name)
1809 (symbol_natural_name, lookup_symbol_in_language)
1810 (symbol_demangled_name, symbol_matches_domain): Add language_d.
1811
6f992fbf
JB
18122010-04-27 Joel Brobecker <brobecker@adacore.com>
1813
1814 * solib-svr4.c (solib_svr4_r_map): Expand function description.
1815
dde59185
JB
18162010-04-27 Joel Brobecker <brobecker@adacore.com>
1817
1818 * symfile.c (init_filename_language_table): Register .dg files
1819 with language_ada.
1820
d09ce91e
JB
18212010-04-27 Joel Brobecker <brobecker@adacore.com>
1822
1823 * gdbtypes.h (struct main_type): Expand comment about target_type
1824 field.
1825
67f1675e
JB
18262010-04-27 Pedro Alves <pedro@codesourcery.com>
1827 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
1828
1829 * symfile.c (reread_symbols): Also search for file in libraries.
1830 Update comment.
1831
dfd0fe27
JB
18322010-04-27 Joel Brobecker <brobecker@adacore.com>
1833
1834 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1835 in terms of configuration.
1836
0133421a
JK
18372010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 * objfiles.c: Include solist.h.
1840 (free_all_objfiles): New variable so. Check stale solist objfiles.
1841 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1842 and no_shared_libraries.
1843
e78f4312
JB
18442010-04-27 Joel Brobecker <brobecker@adacore.com>
1845
1846 ARI warning fix.
1847 * python/py-auto-load.c (source_section_scripts): Remove trailing
1848 new-line in i18n string.
1849
9214d371
DE
18502010-04-26 Doug Evans <dje@google.com>
1851
1852 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1853
3f172e24
TT
18542010-04-26 Tom Tromey <tromey@redhat.com>
1855
1856 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1857 command list.
1858
e790e06e
PM
18592010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1860
1861 Removal of config/i386/nm-i386sol2.h native configuration file.
1862 * config/i386/nm-i386sol2.h: Remove file.
1863 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1864 * config/i386/sol2-64.mh: Idem.
88562582
PM
1865 * config/djgpp/fnchange.lst: Remove reference to that file.
1866 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 1867
b7da9e9f
PM
18682010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1869
1870 PR breakpoints/11531.
1871 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1872 macro definition and related comment.
1873 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1874 (resume): Remove code and comment related to this macro.
1875
72f6eb52
JK
18762010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1877
1878 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1879 Fix whitespace.
1880
ab38a727
PA
18812010-04-24 Pedro Alves <pedro@codesourcery.com>
1882
1883 * defs.h: Adjust comment.
1884 * filesystem.h, filesystem.c: New files.
1885 * Makefile.in (SFILES): Add filesystem.c.
1886 (COMMON_OBS): Add filesystem.o.
1887 * solib.c (solib_find): Handle DOS-based filesystems. Handle
1888 different target and host path flavours.
1889 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1890 has_dos_based_file_system on the gdbarch.
1891 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1892 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1893 * i386-tdep.c (i386_go32_init_abi): Ditto.
1894 * gdbarch.sh (has_dos_based_file_system): New.
1895 * gdbarch.h, gdbarch.c: Regenerate.
1896 * NEWS: Mention improved support for remote targets with DOS-based
1897 filesystems. Mention new `set/show target-file-system-kind'
1898 commands.
1899
35c9c7ba
SS
19002010-04-23 Stan Shebs <stan@codesourcery.com>
1901
1902 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1903 comments.
1904 (struct agent_reqs): Remove.
1905 (ax_reg_mask): Declare.
1906 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1907 (free_agent_expr): Free reg_mask.
1908 (ax_print): Add scope and register mask info.
1909 (ax_reqs): Remove agent_reqs argument, use agent expression
1910 fields, and move part of register mask computation to...
1911 (ax_reg_mask): New function.
1912 * ax-gdb.c (gen_trace_static_fields): Call it.
1913 (gen_traced_pop): Ditto.
1914 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1915 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1916 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1917 (gen_eval_for_expr): Ditto, and require an rvalue.
1918 (agent_command): Call ax_reqs.
1919 (agent_eval_command): Ditto.
1920 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1921 (validate_action_line): Ditto.
1922 (collect_symbol): Ditto.
1923 (encode_actions_1): Ditto.
1924
492928e4
JK
19252010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1926 Paul Pluzhnikov <ppluzhnikov@google.com>
1927 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 Fix deadlock on looped list of loaded shared objects.
1930 * solib-svr4.c (LM_PREV): New function.
1931 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1932 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
1933 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
1934 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1935
66d09542
DE
19362010-04-23 Doug Evans <dje@google.com>
1937
88a1906b
DE
1938 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1939 python.
1940 * configure: Regenerate.
1941 * main.c: #include "python/python.h".
1942 (captured_main): Defer loading auto-loaded scripts until after
1943 local_gdbinit has been sourced.
1944 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1945 (load_auto_scripts_for_objfile): New function.
1946 (auto_load_new_objfile): Call it.
1947 * python/python.h (gdbpy_global_auto_load): Declare.
1948 (load_auto_scripts_for_objfile): Declare.
1949
66d09542
DE
1950 Add support for auto-loading scripts from .debug_gdb_scripts section.
1951 * NEWS: Add entry for .debug_gdb_scripts.
1952 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1953 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1954 (py-auto-load.o): New rule.
1955 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1956 * cli/cli-cmds.h (find_and_open_script): Update prototype.
1957 * python/py-auto-load.c: New file.
1958 * python/python-internal.h: #include <stdio.h>.
1959 (set_python_list, show_python_list): Declare.
1960 (gdbpy_initialize_auto_load): Declare.
1961 (source_python_script_for_objfile): Declare.
1962 * python/python.c: Remove #include of observer.h.
1963 (gdbpy_auto_load): Moved to py-auto-load.c.
1964 (GDBPY_AUTO_FILENAME): Ditto.
1965 (gdbpy_new_objfile): Delete.
1966 (source_python_script_for_objfile): New function.
1967 (set_python_list, show_python_list): Make externally visible.
1968 (_initialize_python): Move "auto-load" command to py-auto-load.c
1969 and observer_attach_new_objfile to py-auto-load.c.
1970
3a48e6ff
JG
19712010-04-23 Jerome Guitton <guitton@adacore.com>
1972
1973 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1974 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1975 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1976 New constants.
1977 (alpha_heuristic_analyze_probing_loop): New function.
1978 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1979 and handle cases when a stack probe loop is generated.
1980 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1981 (alpha_mdebug_max_frame_size_exceeded): New function.
1982 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1983 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1984 Return 0 when the maximum debuggable frame size has been exceeded.
1985
e4166a49
JB
19862010-04-23 Joel Brobecker <brobecker@adacore.com>
1987
1988 Fix ARI warning.
1989 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1990
8bd10a10
CM
19912010-04-20 Chris Moller <cmoller@redhat.com>
1992
1993 PR 10179
1994
1995 * symtab.c (rbreak_command): Added code to include a filename
1996 specification in the rbreak argument.
1997 * NEWS: Added a brief description of filename-qualified rbreak.
1998
c0201579
JK
19992010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 Fix crashes on dangling display expressions.
2002 * ada-lang.c (ada_operator_check): New function.
2003 (ada_exp_descriptor): Fill-in the field operator_check.
2004 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2005 * jv-lang.c (exp_descriptor_java): Likewise.
2006 * m2-lang.c (exp_descriptor_modula2): Likewise.
2007 * scm-lang.c (exp_descriptor_scm): Likewise.
2008 * parse.c (exp_descriptor_standard): Likewise.
2009 (operator_check_standard): New function.
2010 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2011 * parser-defs.h (struct exp_descriptor): New field operator_check.
2012 (operator_check_standard, exp_uses_objfile): New declarations.
2013 * printcmd.c: Remove the inclusion of solib.h.
2014 (display_uses_solib_p): Remove the function.
2015 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2016 and exp_uses_objfile instead of display_uses_solib_p.
2017 * solist.h (struct so_list) <objfile>: New comment.
2018 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2019 * symtab.h (lookup_objfile_from_block): New declaration.
2020 (struct general_symbol_info) <obj_section>: Extend the comment.
2021
6ffbb7ab
TJB
20222010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2023 Thiago Jung Bauermann <bauerman@br.ibm.com>
2024
2025 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2026 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2027 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2028 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2029 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2030 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2031 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2032 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2033 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2034 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2035 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2036 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2037 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2038 Define, in case <ptrace.h> doesn't provide it.
2039 (booke_debug_info): New variable.
2040 (max_slots_number): Ditto.
2041 (hw_break_tuple): New struct.
2042 (thread_points): Ditto.
2043 (ppc_threads): New variable.
2044 (PPC_DEBUG_CURRENT_VERSION): New define.
2045 (have_ptrace_new_debug_booke): New function.
2046 (ppc_linux_check_watch_resources): Renamed to ...
2047 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2048 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2049 (booke_cmp_hw_point): New function.
2050 (booke_find_thread_points_by_tid): Ditto.
2051 (booke_insert_point): Ditto.
2052 (booke_remove_point): Ditto.
2053 (ppc_linux_insert_hw_breakpoint): Ditto.
2054 (ppc_linux_remove_hw_breakpoint): Ditto.
2055 (get_trigger_type): Ditto.
2056 (ppc_linux_insert_watchpoint): Handle BookE processors.
2057 (ppc_linux_remove_watchpoint): Ditto.
2058 (ppc_linux_new_thread): Ditto.
2059 (ppc_linux_thread_exit): New function..
2060 (ppc_linux_stopped_data_address): Handle BookE processors.
2061 (ppc_linux_watchpoint_addr_within_range): Ditto.
2062 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2063 to_remove_hw_breakpoint fields of the target operations struct.
2064 Add observe for the thread_exit event.
2065
be0d2954
L
20662010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2067
2068 * i386-linux-nat.c (regmap): Removed.
2069 (fetch_register): Replace regmap with
2070 i386_linux_gregset_reg_offset.
2071 (store_register): Likewise.
2072 (supply_gregset): Likewise.
2073 (fill_gregset): Likewise.
2074
2075 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2076 global.
2077
2078 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2079
f56dcb88
CM
20802010-04-22 Chris Moller <cmoller@redhat.com>
2081
2082 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
2083 method of popping recursion-detection stack with a method based on
2084 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
2085 the static array obstack rather than the static member obstack.)
2086
6cd6a2ae
L
20872010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2088
2089 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2090 (_initialize_amd64_linux_nat): Replace
2091 amd64_linux_gregset64_reg_offset with
2092 amd64_linux_gregset_reg_offset.
2093
2094 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2095 global.
2096
2097 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2098
621791b8
PM
20992010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2100
2101 PR stabs/11479.
2102 * stabsread.c (set_length_in_type_chain): New function.
2103 (read_struct_type): Call set_length_in_type_chain function.
2104 (read_enum_type): Idem.
2105
105c2d85
SS
21062010-04-21 Stan Shebs <stan@codesourcery.com>
2107 Nathan Sidwell <nathan@codesourcery.com>
2108
2109 * tracepoint.c (trace_save): Open in binary mode.
2110
9a22f0d0
PM
21112010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2112
2113 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2114 fields.
2115 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2116 builtin_char32 fields.
2117 * printcmd.c (decode_format): Set char size to '\0'
2118 for strings unless explicit size is given.
2119 (print_formatted): Correct calculation of NEXT_ADDRESS
2120 for 16 or 32 bit strings.
2121 (do_examine): Do not force byte size for strings.
2122 Use builtin_char16 and builtin_char32 types to display
2123 16 or 32 bit-wide strings.
2124 (x_command): Set LAST_SIZE to 'b' for string type.
2125
f335d1b3
L
21262010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2127
2128 PR corefiles/11523
2129 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2130 XCR0 first.
2131
2132 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2133 there is no .reg-xstate section.
2134 (i386_linux_core_read_description): Check XCR0 first.
2135
a9789a6b
MF
21362010-04-21 Mike Frysinger <vapier@gentoo.org>
2137
2138 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2139 for len <= 8.
2140
0b66f317
CM
21412010-04-21 Chris Moller <cmoller@redhat.com>
2142
2143 PR 9167
2144 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
2145 method of popping recursion-detection stack with a method based on
2146 obstack_object_size().
0b66f317 2147
6e354e5e
PM
21482010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2149
2150 PR pascal/11492.
2151 * p-valprint.c (pascal_val_print): Fix default printing of integer
2152 arrays.
2153
57174f31
PM
21542010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2155
2156 Fix compilation warning on gcc-4.1.2.
2157 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2158 local variable`pc' to zero.
2159
6fbc7cd8
JB
21602010-04-20 Joel Brobecker <brobecker@adacore.com>
2161
2162 Implement thread support with core files on alpha-tru64.
2163 * dec-thread.c (dec_thread_find_new_threads): New function,
2164 extracted from resync_thread_list.
2165 (resync_thread_list): Add OPS parameter. Replace extracted-out
2166 code by call to dec_thread_find_new_threads.
2167 (dec_thread_wait): Update call to resync_thread_list.
2168 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2169
438c98a1
JB
21702010-04-20 Joel Brobecker <brobecker@adacore.com>
2171
2172 * ada-lang.c (value_pointer): New function.
2173 (make_array_descriptor): Call value_pointer to convert addresses to
2174 pointers.
2175
2971b56b
JB
21762010-04-20 Joel Brobecker <brobecker@adacore.com>
2177
2178 * rs6000-aix-tdep.c: #include exceptions.h.
2179 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2180 while reading the memory at ADDR, then ADDR cannot be a function
2181 descriptor.
2182
be942545
JB
21832010-04-20 Joel Brobecker <brobecker@adacore.com>
2184
2185 * ada-typeprint.c (ada_print_typedef): New function.
2186 * ada-lang.h (ada_print_typedef): Add declaration.
2187 * ada-lang.c (ada_language_defn): set la_print_typdef field
2188 to ada_print_typedef.
2189
1ca8fce0
JB
21902010-04-20 Joel Brobecker <brobecker@adacore.com>
2191
2192 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2193
e9ef4f39
JB
21942010-04-20 Joel Brobecker <brobecker@adacore.com>
2195
2196 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2197 (iterate_over_mappings): Adjust function profile. Add declaration.
2198 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2199 Adjust accordingly.
2200
e294797a
JB
22012010-04-20 Joel Brobecker <brobecker@adacore.com>
2202
2203 * procfs.c (solib_mappings_callback): Move function up to avoid
2204 a compiler warning.
2205
a223f1e7
JB
22062010-04-20 Joel Brobecker <brobecker@adacore.com>
2207
2208 * procfs.c (find_signalled_thread, find_stop_signal): Move
2209 these functions down to define them only when used.
2210
0c3acc09
JB
22112010-04-20 Joel Brobecker <brobecker@adacore.com>
2212
2213 * valprint.c (common_val_print): Fix the value before extracting
2214 its contents.
2215 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2216 * ada-lang.h (ada_to_fixed_value): New function declaration.
2217 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2218 to avoid code duplication and fix a bug in the handling of
2219 fixed types contents.
2220
31ef98ae
TT
22212010-04-20 Tom Tromey <tromey@redhat.com>
2222
2223 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2224 (read_partial_die): Likewise.
2225 (dwarf_attr_name): Likewise.
2226
ec31cde5
CM
22272010-04-20 Chris Moller <cmoller@redhat.com>
2228
2229 PR 10867
2230
2231 * cp-valprint.c (global): Adding new static array recursion
2232 detection obstack.
2233 (cp_print_value_fields, cp_print_static_field): Added new static
2234 array recursion detection code.
2235
e0e0e543
MK
22362010-04-20 Mark Kettenis <kettenis@gnu.org>
2237
2238 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2239 general-purpose register set should be 68 instead of 144.
2240 (i386_linux_sse_regset_sections): Likewise.
2241 (i386_linux_avx_regset_sections): Likewise.
2242
08922a10
SS
22432010-04-20 Stan Shebs <stan@codesourcery.com>
2244 Nathan Sidwell <nathan@codesourcery.com>
2245
2246 * dwarf2loc.c (struct axs_var_loc): New struct.
2247 (dwarf2_tracepoint_var_loc): New function.
2248 (dwarf2_tracepoint_var_access): New function.
2249 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2250 with DW_OP_piece.
2251 (locexpr_describe_location_piece): New function.
2252 (locexpr_describe_location_1): New function.
2253 (locexpr_describe_location): Call it, update signature.
2254 (loclist_describe_location): Rewrite to loop over locations,
2255 update signature.
2256 * symtab.h (struct symbol_computed_ops): Add address to
2257 describe_location arguments, return void.
2258 * printcmd.c (address_info): Get context PC, pass to computed
2259 location description.
2260 * tracepoint.c (scope_info): Ditto.
2261 * ax-gdb.c (trace_kludge): Export.
2262
2dc7f7b3
TT
22632010-04-20 Tom Tromey <tromey@redhat.com>
2264
2265 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2266 (struct dwarf2_cie) <segment_size>: New field.
2267 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2268 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2269 DW_FORM_exprloc.
2270 (read_attribute_value): Handle DW_FORM_flag_present,
2271 DW_FORM_sec_offset, DW_FORM_exprloc.
2272 (dump_die_shallow): Likewise.
2273 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2274 (dwarf2_const_value): Handle DW_FORM_exprloc.
2275 (attr_form_is_block): Likewise.
2276 (struct line_header) <maximum_ops_per_instruction>: New field.
2277 (dwarf_decode_line_header): Set new field.
2278 (dwarf_decode_lines): Handle new field.
2279
ce4b0682
SDJ
22802010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2281
2282 * f-exp.y: Add new production to recognize the `logical*8' type.
2283 (LOGICAL_S8_KEYWORD): New token.
2284 * f-lang.c (enum f_primitive_types)
2285 <f_primitive_type_logical_s8>: New field.
2286 (f_language_arch_info): Handling `logical*8' type.
2287 (build_fortran_types): Building `logical*8' type.
2288 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2289
ff9f22f1
DE
22902010-04-19 Doug Evans <dje@google.com>
2291
2292 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2293 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2294 (pipe_close): Ditto.
2295
437125bd
PM
22962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2297
2298 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2299
e8e6c82e
PM
23002010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2301
2302 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2303 type to void function.
2304
4136fdd2
SS
23052010-04-19 Stan Shebs <stan@codesourcery.com>
2306 Vladimir Prus <vladimir@codesourcery.com>
2307
2308 * tracepoint.c (tfind_1): Add missing newline, report exit from
2309 tfind mode as such.
2310 * target.c (update_current_target): Make default
2311 to_trace_find return -1.
2312
0c4b2e63
MF
23132010-04-19 Mike Frysinger <vapier@gentoo.org>
2314
2315 * objc-lang.c (find_methods): Move symname check up.
2316
78076abc
PA
23172010-04-19 Pedro Alves <pedro@codesourcery.com>
2318
2319 * ada-lang.c (print_recreate_exception)
2320 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2321 not "catch unhandled".
2322
6149aea9
PA
23232010-04-19 Pedro Alves <pedro@codesourcery.com>
2324
2325 PR breakpoints/8554.
2326
2327 Implement `save-breakpoints'.
2328
2329 * breakpoint.c (save_cmdlist): New.
2330 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2331 to save_cmdlist.
2332 (print_recreate_catch_fork): New.
2333 (catch_fork_breakpoint_ops): Install it.
2334 (print_recreate_catch_vfork): New.
2335 (catch_vfork_breakpoint_ops): Install it.
2336 (print_recreate_catch_syscall): New.
2337 (catch_syscall_breakpoint_ops): Install it.
2338 (print_recreate_catch_exec): New.
2339 (catch_exec_breakpoint_ops): Install it.
2340 (print_recreate_exception_catchpoint): New.
2341 (gnu_v3_exception_catchpoint_ops): Install it.
2342 (save_breakpoints): New, based on tracepoint_save_command, but
2343 handle all breakpoint types.
2344 (save_breakpoints_command): New.
2345 (tracepoint_save_command): Rename to...
2346 (save_tracepoints_command): ... this, and reimplement using
2347 save_breakpoints.
2348 (save_command): New.
2349 (_initialize_breakpoints): Install the "save" command prefix.
2350 Install the "save breakpoints" command. Make "save-tracepoints" a
2351 deprecated alias for "save tracepoints".
2352 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2353 * ada-lang.c (print_recreate_exception): New.
2354 (print_recreate_catch_exception): New.
2355 (catch_exception_breakpoint_ops): Install it.
2356 (print_recreate_catch_exception_unhandled): New.
2357 (catch_exception_unhandled_breakpoint_ops): Install it.
2358 (print_recreate_catch_assert): New.
2359 (catch_assert_breakpoint_ops): Install it.
2360
2361 * NEWS: Mention the new `save breakpoints' command. Mention the
2362 new `save tracepoints' alias and that `save-tracepoints' is now
2363 deprecated.
2364
0a8fce9a
PA
23652010-04-18 Pedro Alves <pedro@codesourcery.com>
2366
2367 PR tui/9217
2368
2369 * tui/tui-out.c: Include cli-out.h.
2370 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2371 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2372 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2373 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2374 declarations.
2375 (struct ui_out_data): Rename to...
2376 (struct tui_ui_out_data): ... this. Remove `stream' and
2377 `suppress_output' fields, and inherit cli_ui_out_data.
2378 (tui_out_data): New typedef.
2379 (tui_ui_out_impl): Don't initialize fields staticaly.
2380 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2381 (tui_begin, tui_end): Delete.
2382 (tui_field_int): Adjust to delegate most work to the base type.
2383 (tui_field_skip): Delete.
2384 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2385 delegate most work to the base type.
2386 (tui_spaces): Delete.
2387 (tui_text): Adjust to delegate most work to the base type.
2388 (tui_message): Delete.
2389 (tui_wrap_hint): Delete.
2390 (tui_flush): Delete.
2391 (out_field_fmt): Delete.
2392 (field_separator): Delete.
2393 (tui_out_new): Adjust to initialize the base type.
2394 (_initialize_tui_out): Initialize tui_ui_out_impl.
2395 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2396 cli_ui_out_data.
2397 (cli_out_data): Adjust.
2398 (cli_ui_out_impl): Make extern.
2399 (cli_table_header, cli_field_int, cli_field_skip): Use
2400 uo_field_string instead of cli_field_string.
2401 (cli_redirect): Adjust to use cli_out_data.
2402 (cli_out_data_ctor): New.
2403 (cli_out_new): Use it.
2404 * cli-out.h (struct ui_file): Remove forward declaration.
2405 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2406 (cli_ui_out_impl): Declare.
2407 (cli_out_data_ctor): Declare.
2408 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2409 (uo_field_string): No longer static.
2410 (ui_out_data): Change return type to void pointer.
2411 (ui_out_new): Change `data' parameter type to void pointer.
2412 * ui-out.h (struct ui_out_data): Don't forward declare.
2413 (ui_out_data): Change return type to void pointer.
2414 (ui_out_new): Change `data' parameter type to void pointer.
2415 (uo_field_string): Declare.
2416
172240dd
PA
24172010-04-17 Pedro Alves <pedro@codesourcery.com>
2418
2419 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2420 instead of always false.
2421
ed41462c
L
24222010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2423
2424 PR corefiles/11511
2425 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2426 orig_rax.
2427
cc60f2e3
PA
24282010-04-17 Pedro Alves <pedro@codesourcery.com>
2429
2430 * breakpoint.c (watchpoints_triggered): Use
2431 is_hardware_watchpoint.
2432 (watchpoints_triggered): Ditto.
2433 (bpstat_check_location): Use is_watchpoint and
2434 is_hardware_watchpoint.
2435 (bpstat_check_watchpoint): Use is_watchpoint and
2436 is_hardware_watchpoint.
2437 (bpstat_stop_status): Fix comment.
2438 (user_settable_breakpoint): Use is_watchpoint.
2439 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2440 (disable_watchpoints_before_interactive_call_start): Use
2441 is_watchpoint.
2442 (enable_watchpoints_after_interactive_call_stop): Use
2443 is_watchpoint.
2444 (clear_command): Use is_watchpoint.
2445 (do_enable_breakpoint): Use is_watchpoint.
2446
cb7db0f2
MF
24472010-04-16 Mike Frysinger <vapier@gentoo.org>
2448
2449 * solib-frv.c (enable_break1_done): Delete.
2450 (enable_break2): Do not check enable_break1_done. Move the
2451 enable_break2_done setting and call to
2452 remove_solib_event_breakpoints() to the end. Return without
2453 warning when the contents of _dl_debug_addr are 0.
2454 (enable_break): Do not set enable_break1_done.
2455 (frv_clear_solib): Likewise.
2456
d77b48cf
KB
24572010-04-16 Kevin Buettner <kevinb@redhat.com>
2458
2459 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2460 instead of an error if no PLT entry is found. Return a
2461 potentially useful result.
2462 (m32c_m16c_pointer_to_address): Add code to search for function
2463 address when no .plt entry is found.
2464
f90824dc
SS
24652010-04-16 Stan Shebs <stan@codesourcery.com>
2466
2467 * tracepoint.c (trace_variable_command): Run a cleanup.
2468
9b79b476
PM
24692010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2470
2471 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2472
711e434b
PM
24732010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2474
2475 Support for Windows OS Thread Information Block.
2476 * NEWS: Document new feature.
2477 * remote.c (PACKET_qGetTIBAddr): New enum element.
2478 (remote_get_tib_address): New function.
2479 (init_remote_ops): Set to_get_tib_address field
2480 to remote_get_tib_address.
2481 (_initialize_remote): Add add_packet_config_cmd
2482 for PACKET_qGetTIBAddr.
2483 * target.c (update_current_target): Set default value for
2484 new to_get_tib_address field.
2485 * target.h (target_ops): New field to_get_tib_address.
2486 (target_get_tib_address): New macro.
2487 * windows-nat.c (thread_info): Add thread_local_base field.
2488 (windows_add_thread): Add tlb argument of type 'void *'.
2489 (fake_create_process): Adapt windows_add_thread call.
2490 (get_windows_debug_event): Idem.
2491 (windows_get_tib_address): New function.
2492 (init_windows_ops): Set to_get_tib_address field
2493 to remote_get_tib_address.
2494 (_initialize_windows_nat): Replace info_w32_cmdlist
2495 initialization by a call to init_w32_command_list.
2496 (info_w32_command, info_w32_cmdlist): Removed from here...
2497 to windows-tdep.c file.
2498 * windows-tdep.h (info_w32_cmdlist): Declare.
2499 (init_w32_command_list): New external function
2500 declaration.
2501 * windows-tdep.c: Add several headers.
2502 (info_w32_cmdlist): to here, made global.
2503 (thread_information_32): New struct.
2504 (thread_information_64): New struct.
2505 (TIB_NAME): New char array.
2506 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2507 (maint_display_all_tib): New static variable.
2508 (windows_get_tlb_type): New function.
2509 (tlb_value_read, tlb_value_write): New functions.
2510 (tlb_value_funcs): New static struct.
2511 (tlb_make_value): New function.
2512 (display_one_tib): New function.
2513 (display_tib): New function.
2514 (show_maint_show_all_tib):New function.
2515 (info_w32_command): Moved from windows-nat.c.
2516 (init_w32_command_list): New function.
2517 (_initialize_windows_tdep): New function.
2518 New "maint set/show show-all-tib" command
2519 New "$_tlb" internal variable.
2520
cae3f17b
JB
25212010-04-16 Joel Brobecker <brobecker@adacore.com>
2522
2523 * tui/tui-regs.c (tui_display_register): Add comment about
2524 a couple of casts.
2525 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2526
2ce6d6bf
SS
25272010-04-15 Stan Shebs <stan@codesourcery.com>
2528
2529 * frame.c: Include tracepoint.h.
2530 (get_current_frame): Allow a trace frame to be an alternate source
2531 of stack frame data.
2532 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2533 it won't succeed.
2534
7e559477
PA
25352010-04-15 Pedro Alves <pedro@codesourcery.com>
2536
2537 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2538 flags.
2539 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2540
3f7b2faa
DE
25412010-04-15 Doug Evans <dje@google.com>
2542
fa33c3cd
DE
2543 * NEWS: Add entry for python program space support.
2544 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2545 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2546 (py-progspace.o): New rule.
2547 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2548 function.
2549 (find_pretty_printer_from_progspace): New function.
2550 (find_pretty_printer_from_gdb): New function.
2551 (find_pretty_printer): Rewrite.
2552 * python/py-progspace.c: New file.
2553 * python/python-internal.h (program_space): Add forward decl.
2554 (pspace_to_pspace_object, pspy_get_printers): Declare.
2555 (gdbpy_initialize_pspace): Declare.
2556 * python/python.c: #include "progspace.h".
2557 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2558 (_initialize_python): Call gdbpy_initialize_pspace.
2559 (GdbMethods): Add current_progspace, progspaces.
2560
3f7b2faa
DE
2561 Add -s option to source command.
2562 * NEWS: Document new option.
2563 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2564 Delete from_tty and cleanupp args. Split filep arg into file and
2565 full_pathp. New arg search_path.
2566 (source_script_from_stream): New function.
2567 (source_script_with_search): New function.
2568 (source_script): Rewrite.
2569 (source_command): Parse "-s" option.
2570 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2571 * python/python.c (source_python_script): Make file arg a const char *.
2572 Don't call fclose, leave for caller.
2573 * python/python.h (source_python_script): Update.
2574
a86988f2
PA
25752010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2576 Pedro Alves <pedro@codesourcery.com>
2577
2578 Avoid rereading shared libraries that haven't changed.
2579
2580 * solib.c (free_so_symbols): New function, from ...
2581 (free_so): ... here. Call it.
2582 (solib_read_symbols): Don't warn here if symbols have already been
2583 loaded.
2584 (solib_add): Warn here instead, if a pattern was specified.
2585 (reload_shared_libraries_1): New.
2586 (reload_shared_libraries): Rewrite to not fetch the library list.
2587
e6d9b9c2
DE
25882010-04-14 Doug Evans <dje@google.com>
2589
589390d6 2590 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
2591 concatenating string to search path.
2592
516ba659
PA
25932010-04-14 Pedro Alves <pedro@codesourcery.com>
2594
2595 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2596 * objfiles.c (gdb_bfd_close_or_warn): New.
2597 * corelow.c: Include objfiles.h
2598 (core_close): Use gdb_bfd_close_or_warn.
2599 * elfread.c (build_id_verify): Ditto.
2600 * exec.c (exec_close, exec_close_1): Ditto.
2601
048d532d
PA
26022010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2603 Pedro Alves <pedro@codesourcery.com>
2604
2605 Group errors for many missing shared libraries.
2606
2607 * solist.h (struct so_list): Remove from_tty.
2608 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2609 (solib_map_sections): Take so_list argument. Return 0 if we
2610 failed to open a BFD. Add target sections here.
2611 (symbol_add_stub): Delete.
2612 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2613 not from_tty copied from the so_list. Don't warn a second time
2614 for a missing library.
2615 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2616 add to the section table here. Print out a single warning for all
2617 missing libraries.
2618 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2619 flags.
2620
044c0f87
PM
26212010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2622
2623 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2624 error/warning messages. Capitalize and use complete sentences.
2625 (blpy_block_syms_iternext): Likewise.
2626 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2627 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2628 (frame_info_to_frame_object, frapy_read_var)
2629 (gdbpy_frame_stop_reason_string): Likewise.
2630 * python/py-lazy-string.c (stpy_convert_to_value)
2631 (gdbpy_create_lazy_string_object): Likewise.
2632 * python/py-objfile.c (objfpy_set_printers): Likewise.
2633 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2634 * python/python.c (parameter_to_python): Likewise.
2635 * python/py-type.c (typy_range, typy_target): Likewise.
2636 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2637 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2638
2639
79f283fe
PM
26402010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2641
2642 PR python/11381
2643
2644 * python/py-prettyprint.c (pretty_print_one_value): Test for
2645 Py_None.
2646 (print_string_repr): Test for Py_None. Set flags accordingly.
2647 Return value depending on return type.
2648 (print_children): Take a value indicating whether data was printed
2649 before this function was called. Alter output accordingly.
2650 (apply_val_pretty_printer): Capture return value from
2651 print_string_repr and pass to print_children.
2652
4ac5d44e
MK
26532010-04-13 Mark Kettenis <kettenis@gnu.org>
2654
e1caee70 2655 PR corefiles/11481
4ac5d44e
MK
2656 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2657 register note sections.
2658 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2659 New variables.
2660 (i386_linux_init_abi): Install list of supported register note
2661 sections that matches the target description.
2662
ad91cd99
PA
26632010-04-13 Pedro Alves <pedro@codesourcery.com>
2664
2665 * remote.c (remote_get_noisy_reply): Don't error out on empty
2666 replies.
2667 (remote_start_remote): Update and merge tracepoints and trace
2668 state variables as long as the target supports tracepoints.
2669 (remote_trace_init): Fix prototype.
2670 (remote_download_trace_state_variable): Validate reply.
2671 (remote_trace_set_readonly_regions): Fix prototype.
2672 (remote_trace_start): Fix prototype. Check for empty reply.
2673 (remote_get_trace_status): Small cleanup.
2674 (remote_trace_stop): Fix prototype. Check for empty reply.
2675 (remote_trace_find): Check for empty reply.
2676 (remote_save_trace_data): Validate reply.
2677 (remote_set_disconnected_tracing): Check for empty reply, and
2678 validate reply.
2679 (remote_set_circular_trace_buffer): Ditto.
2680
ae3bccd4
PM
26812010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2682
2683 Suppress unused value warning during compilation.
2684 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2685 calls to void.
2686 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2687
523136f2
SS
26882010-04-12 Stan Shebs <stan@codesourcery.com>
2689
2690 * tracepoint.c (tfile_xfer_partial): Check read result.
2691
0d18d720
MF
26922010-04-12 Mike Frysinger <vapier@gentoo.org>
2693
2694 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2695 * remote-sim.c (gdbsim_files_info): Likewise.
2696
3b273a55
RE
26972010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2698
2699 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2700 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2701 variable.
2702 (fetch_vfp_registers): New function to fetch VFP registers.
2703 (store_vfp_registers): New function to store VFP registers.
2704 (arm_linux_fetch_inferior_registers): Add support for VFP
2705 registers.
2706 (arm_linux_store_inferior_registers): Likewise.
2707 (arm_linux_read_description): Likewise.
2708 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2709 until we need it.
2710
778c7095
L
27112010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2712
2713 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2714 tdep.
2715 (amd64_collect_xstateregset): Likewise.
2716
2114d44c
SS
27172010-04-09 Stan Shebs <stan@codesourcery.com>
2718
87290684
SS
2719 * tracepoint.c (trace_status_mi): Report frames created.
2720
2114d44c
SS
2721 * tracepoint.c (trace_dump_command): Include default-collect
2722 expressions.
2723
86da934b
UW
27242010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2725
2726 * symtab.c (find_function_start_sal): Never return SAL pointing
2727 before function start address, even if line info is missing.
2728
2d6e647a 27292010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
2730
2731 * NEWS: Mention tracepoints support.
2732
a97153c7
PA
27332010-04-09 Pedro Alves <pedro@codesourcery.com>
2734
2735 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2736 circular trace buffer statuses.
2737
7a66d603
JK
27382010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 * config/djgpp/fnchange.lst: Fix typo in translations for
2741 symbol-without-target_section.exp and symbol-without-target_section.c.
2742
2566ad2d
PA
27432010-04-09 Pedro Alves <pedro@codesourcery.com>
2744
2745 * breakpoint.c (condition_command): Pass condition expression to
2746 set_breakpoint_condition stripped from breakpoint number.
2747
adc36818
PM
27482010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2749 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 2750 Tom Tromey <tromey@redhat.com>
adc36818
PM
2751
2752 * breakpoint.c (condition_command): Simplify. Move condition
2753 setting code to ...
2754 (set_breakpoint_condition): ... here. New function.
2755 * breakpoint.h (set_breakpoint_condition): Declare.
2756 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2757 (SUBDIR_PYTHON_SRCS): Likewise.
2758 (py-breakpoint.o): New rule.
2759 * python/py-breakpoint.c: New file.
2760 * python/python-internal.h (gdbpy_breakpoints)
2761 (gdbpy_initialize_breakpoints): Declare.
2762 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2763
219f2f23
PA
27642010-04-09 Pedro Alves <pedro@codesourcery.com>
2765
2766 * regformats/regdat.sh: Include server.h. Don't include
2767 regcache.h.
2768
33da3f1c
SS
27692010-04-08 Stan Shebs <stan@codesourcery.com>
2770 Pedro Alves <pedro@codesourcery.com>
2771
2772 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2773 and circular_buffer.
2774 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2775 * tracepoint.c (trace_status_command): Display target's status for
2776 disconnected tracing and circular buffer.
2777 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2778 query for non-disconnected-tracing case, remove the stop_tracing
2779 call.
2780 (tfile_open): Clear disconnected and circular buffer status.
2781 (trace_save): Save disconnected and circular buffer status.
2782 (parse_trace_status): Parse disconnected and circular buffer status,
2783 also recognize disconnected as a stop reason.
2784 * remote.c (remote_set_disconnected_tracing): Only set
2785 QTDisconnected if the remote end supports disconnected tracing.
2786 Warn otherwise, if trying to enable disconnected tracing.
2787 * infcmd.c (detach_command): Update disconnect_tracing call.
2788 * cli/cli-cmds.c (quit_command): Ditto.
2789
4e4d8374
L
27902010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2791
2792 * i387-tdep.c (i387_collect_xsave): Replace abort with
2793 internal_error.
2794
ad443146
SS
27952010-04-08 Stan Shebs <stan@codesourcery.com>
2796
2797 * breakpoint.c (default_collect_info): New function.
2798 (breakpoints_info): Call it.
2799 (maintenance_info_breakpoints): Ditto.
2800 (tracepoints_info): Ditto.
2801
40936b0d
L
28022010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2803
2804 * i387-tdep.c (i387_collect_xsave): Re-indent.
2805
3a13a53b
L
28062010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2807
2808 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2809 if HAVE_PTRACE_GETFPXREGS is defined.
2810 (i386_linux_read_description): Set have_ptrace_getfpxregs and
2811 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2812
2813 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2814 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2815 if .reg-xfp section doesn't exist.
2816 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2817
2818 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2819
2820 * i386-tdep.c: Include "features/i386/i386-mmx.c".
2821 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2822 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
2823 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2824 (i386_gdbarch_init): Update comments.
2825 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2826
2827 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2828
2829 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2830
2831 * features/Makefile (i386/i386-mmx-expedite): New.
2832 (i386/i386-mmx-linux-expedite): Likewise.
2833 ($(outdir)/i386/i386-mmx.dat): Likewise.
2834 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2835
2836 * features/i386/i386-mmx-linux.c: New.
2837 * features/i386/i386-mmx-linux.xml: Likewise.
2838 * features/i386/i386-mmx.c: Likewise.
2839 * features/i386/i386-mmx.xml: Likewise.
2840 * regformats/i386/i386-mmx-linux.dat: Likewise.
2841 * regformats/i386/i386-mmx.dat: Likewise.
2842
2843 * features/Makefile (WHICH): Add i386/i386-mmx and
2844 i386/i386-mmx-linux.
2845
08001717
DE
28462010-04-08 Doug Evans <dje@google.com>
2847
2848 * source.c (openp): Skip $cdir in PATH.
2849
fff5cc64
PM
28502010-04-08 Phil Muldoon <pmuldoon@redhat.com>
2851
2852 PR python/11417
fff5cc64 2853 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
2854 a NULL address.
2855 (gdbpy_create_lazy_string_object): Allow strings with a NULL
2856 address and a zero length.
fff5cc64 2857
f8c4f480
HZ
28582010-04-08 Hui Zhu <teawater@gmail.com>
2859
2860 * i386-tdep.c (i386_process_record): Add support for insn
2861 rdtsc.
2862
eb5cda86
DE
28632010-04-07 Doug Evans <dje@google.com>
2864
2865 * python/python.c (source_python_script): Use ensure_python_env
2866 to prepare environment for script.
2867
a055a187
L
28682010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2869
2870 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2871 <sys/uio.h> and "i386-xstate.h".
2872 (PTRACE_GETREGSET): New.
2873 (PTRACE_SETREGSET): Likewise.
2874 (have_ptrace_getregset): Likewise.
2875 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2876 registers.
2877 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2878 registers.
2879 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2880 (amd64_linux_store_inferior_registers): Likewise.
2881 (amd64_linux_read_description): Check and enable AVX target
2882 descriptions.
2883
2884 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2885 and "features/i386/amd64-avx-linux.c".
2886 (amd64_linux_regset_sections): New.
2887 (amd64_linux_core_read_description): Check and enable AVX
2888 target description.
2889 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
2890 set_gdbarch_core_regset_sections.
2891 (_initialize_amd64_linux_tdep): Call
2892 initialize_tdesc_amd64_avx_linux.
2893
2894 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2895 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2896 (tdesc_amd64_avx_linux): New.
2897 (amd64_linux_update_xstateregset): Likewise.
2898
2899 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2900 (amd64_ymm_names): New.
2901 (amd64_ymmh_names): Likewise.
2902 (amd64_register_name): Likewise.
2903 (amd64_supply_xstateregset): Likewise.
2904 (amd64_collect_xstateregset): Likewise.
2905 (amd64_supply_xsave): Likewise.
2906 (amd64_collect_xsave): Likewise.
2907 (AMD64_NUM_REGS): Removed.
2908 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2909 %xmmN if AVX is available.
2910 (amd64_pseudo_register_name): Support pseudo YMM registers.
2911 (amd64_regset_from_core_section): Support .reg-xstate section.
2912 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2913 and ymm0h_regnum. Call set_gdbarch_register_name.
2914 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2915
2916 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2917 AMD64_YMM15H_REGNUM.
2918 (AMD64_NUM_REGS): New.
2919 (amd64_supply_xsave): Likewise.
2920 (amd64_collect_xsave): Likewise.
2921 (amd64_register_name): Removed.
2922 (amd64_register_type): Likewise.
2923
31aeac78
L
29242010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2925
2926 * i387-tdep.c: Include "i386-xstate.h".
2927 (XSAVE_XSTATE_BV_ADDR): New.
2928 (xsave_avxh_offset): Likewise.
2929 (XSAVE_AVXH_ADDR): Likewise.
2930 (i387_supply_xsave): Likewise.
2931 (i387_collect_xsave): Likewise.
2932
2933 * i387-tdep.h (I387_NUM_YMM_REGS): New.
2934 (I387_YMM0H_REGNUM): Likewise.
2935 (I387_YMMENDH_REGNUM): Likewise.
2936 (i387_supply_xsave): Likewise.
2937 (i387_collect_xsave): Likewise.
2938
c131fcee
L
29392010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2940
2941 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2942 <sys/uio.h> and "i386-xstate.h".
2943 (PTRACE_GETREGSET): New.
2944 (PTRACE_SETREGSET): Likewise.
2945 (fetch_xstateregs): Likewise.
2946 (store_xstateregs): Likewise.
2947 (GETXSTATEREGS_SUPPLIES): Likewise.
2948 (regmap): Include 8 upper YMM registers.
2949 (i386_linux_fetch_inferior_registers): Support XSAVE extended
2950 state.
2951 (i386_linux_store_inferior_registers): Likewise.
2952 (i386_linux_read_description): Check and enable AVX target
2953 descriptions.
2954
2955 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2956 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2957 (i386_linux_regset_sections): Add ".reg-xstate".
2958 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2959 (i386_linux_core_read_xcr0): New.
2960 (i386_linux_core_read_description): Check and enable AVX target
2961 description.
2962 (i386_linux_init_abi): Set xsave_xcr0_offset.
2963 (_initialize_i386_linux_tdep): Call
2964 initialize_tdesc_i386_avx_linux.
2965
2966 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2967 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2968 (i386_linux_core_read_xcr0): New.
2969 (tdesc_i386_avx_linux): Likewise.
2970 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2971
2972 * i386-tdep.c: Include "i386-xstate.h" and
2973 "features/i386/i386-avx.c".
2974 (i386_ymm_names): New.
2975 (i386_ymmh_names): Likewise.
2976 (i386_ymmh_regnum_p): Likewise.
2977 (i386_ymm_regnum_p): Likewise.
2978 (i386_xmm_regnum_p): Likewise.
2979 (i386_register_name): Likewise.
2980 (i386_ymm_type): Likewise.
2981 (i386_supply_xstateregset): Likewise.
2982 (i386_collect_xstateregset): Likewise.
2983 (i386_sse_regnum_p): Removed.
2984 (i386_pseudo_register_name): Support pseudo YMM registers.
2985 (i386_pseudo_register_type): Likewise.
2986 (i386_pseudo_register_read): Likewise.
2987 (i386_pseudo_register_write): Likewise.
2988 (i386_dbx_reg_to_regnum): Return %ymmN register number for
2989 %xmmN if AVX is available.
2990 (i386_regset_from_core_section): Support .reg-xstate section.
2991 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2992 (i386_process_record): Replace i386_sse_regnum_p with
2993 i386_xmm_regnum_p.
2994 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2995 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 2996 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
2997 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
2998 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
2999 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3000 Set ymm0_regnum.
3001 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3002
3003 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3004 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3005 i386_ymm_type.
3006 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3007 (I386_AVX_NUM_REGS): New.
3008 (i386_xmm_regnum_p): Likewise.
3009 (i386_ymm_regnum_p): Likewise.
3010 (i386_ymmh_regnum_p): Likewise.
3011
3012 * common/i386-xstate.h: New.
3013
98adf0f3
L
30142010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3015
3016 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3017
3018 * features/Makefile (WHICH): Add i386/i386-avx,
3019 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3020 (i386/i386-avx-expedite): New.
3021 (i386/i386-avx-linux-expedite): Likewise.
3022 (i386/x86-64-avx-expedite):Likewise.
3023 (i386/x86-64-avx-linux-expedite): Likewise.
3024 ($(outdir)/i386/i386-avx.dat): New dependency.
3025 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3026 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3027 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3028
3029 * features/i386/32bit-avx.xml: New.
3030 * features/i386/64bit-avx.xml: Likewise.
3031 * features/i386/i386-avx-linux.c: Likewise.
3032 * features/i386/i386-avx-linux.xml: Likewise.
3033 * features/i386/i386-avx.c: Likewise.
3034 * features/i386/i386-avx.xml: Likewise.
3035 * features/i386/x86-64-avx-linux.c: Likewise.
3036 * features/i386/x86-64-avx-linux.xml: Likewise.
3037 * features/i386/x86-64-avx.c: Likewise.
3038 * features/i386/x86-64-avx.xml: Likewise.
3039 * regformats/i386/i386-avx-linux.dat: Likewise.
3040 * regformats/i386/i386-avx.dat: Likewise.
3041 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3042 * regformats/i386/x86-64-avx.dat: Likewise.
3043
05159abe
DE
30442010-04-07 Doug Evans <dje@google.com>
3045
3046 * top.c (source_file_name): Make const char *.
3047 * top.h (source_file_name): Update.
3048 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3049 const char *.
3050 (script_from_file): Change `file' arg to const char *.
3051 * cli/cli-script.h (script_from_file): Update.
3052
96e39866
DE
30532010-04-06 Doug Evans <dje@google.com>
3054
3055 * cli/cli-cmds.c (source_command): Run cleanups.
3056
3149d8c1
SS
30572010-04-06 Stan Shebs <stan@codesourcery.com>
3058
3059 * defs.h (char_ptr): Move typedef here from...
3060 * ada-lang.c (char_ptr): Remove.
3061 * charset.c (char_ptr): Remove.
3062 * tracepoint.h (struct uploaded_string): Remove.
3063 (struct uploaded_tp): Use vectors for string arrays.
3064 * tracepoint.c (trace_save): Use vectors of actions.
3065 (parse_tracepoint_definition): Ditto.
3066 (get_uploaded_tp): Clear vectors.
3067 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3068 (next_cmd): Change to an int.
3069 (read_next_cmd): Use vector of command strings.
3070
4cc23ede
DE
30712010-04-06 Doug Evans <dje@google.com>
3072
3073 * top.h (source_script, cd_command): Delete.
3074 * main.c: #include "cli/cli-cmds.h"
3075
bd333fb7
KB
30762010-04-06 Kevin Buettner <kevinb@redhat.com>
3077
3078 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3079 type in bytes, not bits.
3080
ec8a089a
PM
30812010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3082
3083 * stabsread.c (define_symbol): Add support for char
3084 and string constants.
3085
2244ba2e
PM
30862010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3087
3088 Remove remaining "%ll" uses.
3089 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3090 hex_string call.
3091 * rs6000-nat.c (rs6000_ptrace64): Idem.
3092 * solib-pa64.c (pa64_current_sos): Idem.
3093 * solib-spu.c (spu_current_sos): Idem.
3094 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3095 plongest call.
3096 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3097 phex (VAR, 8) call.
3098 * sh64-tdep.c (sh64_show_media_regs): Idem.
3099
fce3c1f0
SS
31002010-04-05 Stan Shebs <stan@codesourcery.com>
3101
3102 * tracepoint.c: Include gdbcore.h.
3103 (tfile_xfer_partial): Return partial results, also try reading
3104 from executable.
3105 (tfile_has_all_memory): New function.
3106 (init_tfile_ops): Use it.
3107
626ea16d
SDJ
31082010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3109
3110 PR gdb/10736:
3111 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3112 the changes in data-directory.
3113 (init_sysinfo): Reload the syscall XML file if the data-directory
3114 has changed.
3115
1f7ccab2
JK
31162010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 Code cleanup.
3119 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3120
d77f58be
SS
31212010-04-04 Stan Shebs <stan@codesourcery.com>
3122 Nathan Sidwell <nathan@codesourcery.com>
3123
3124 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3125 breakpoints printed.
3126 (is_hardware_watchpoint): Make argument const.
3127 (is_watchpoint): Ditto.
3128 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3129 use it everywhere.
3130 (breakpoints_info): Pass NULL to breakpoint_1.
3131 (maintenance_info_breakpoints): Ditto.
3132 (watchpoints_info): New function.
3133 (tracepoints_info): Use breakpoint_1 filter.
3134 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3135 (_initialize_breakpoint): Make "info watchpoints" its own command.
3136 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3137 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3138
af54718e
SS
31392010-04-04 Stan Shebs <stan@codesourcery.com>
3140
3141 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3142
74d1f91e
JK
31432010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3144
3145 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3146 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3147
91d91ceb
JK
31482010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3149
3150 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3151 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3152
60531b24
JK
31532010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3154
3155 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3156 code form.
3157
a3c4230a
HZ
31582010-04-02 Hui Zhu <teawater@gmail.com>
3159
3160 * i386-tdep.c (OT_DQUAD): New enum.
3161 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3162 SSE3, SSSE3 and SSE4.
3163
b15758fe
HZ
31642010-04-02 Hui Zhu <teawater@gmail.com>
3165
3166 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3167 "*addr = 0".
3168
afd02f27
PA
31692010-04-02 Pedro Alves <pedro@codesourcery.com>
3170
3171 * tracepoint.c (trace_dump_actions): New, factored out from
3172 trace_dump_command, and adjusted to recurse into while-stepping's
3173 action list.
3174 (trace_dump_command): Use it.
3175
5cea2a26
PA
31762010-04-02 Pedro Alves <pedro@codesourcery.com>
3177
3178 * breakpoint.h (struct counted_command_line): Moved definition to
3179 breakpoint.c, and forward declare.
3180 (breakpoint_commands): Declare.
3181 * breakpoint.c (struct counted_command_line): Moved here.
3182 (breakpoint_commands): New.
3183 * tracepoint.c (encode_actions): Use breakpoint_commands.
3184 * remote.c (remote_download_tracepoint): Ditto.
3185
7c47795c
L
31862010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3187
3188 * remote.c (remote_parse_stop_reply): Use hex_string instead
3189 of phex_nz for error.
3190
fff87407
SS
31912010-04-01 Stan Shebs <stan@codesourcery.com>
3192 Nathan Sidwell <nathan@codesourcery.com>
3193
3194 * tracepoint.h (enum actionline_type): Remove.
3195 (validate_actionline): Change return to void.
3196 * tracepoint.c (report_agent_reqs_errors): New function.
3197 (validate_actionline): Call it, change return to void, report errors
3198 more consistently.
3199 (collect_symbol): Call report_agent_reqs_errors.
3200 (encode_actions_1): Ditto.
3201 (encode_actions): Don't expect a result from validate_actionline.
3202
615bcdef
SS
32032010-04-01 Stan Shebs <stan@codesourcery.com>
3204
3205 * tracepoint.c (trace_start_command): Confirm if trace is running.
3206 (trace_stop_command): Error if trace not running.
3207
fe01d668
L
32082010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3209
3210 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3211 (AMD64_NUM_LOWER_BYTE_REGS): New.
3212 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3213 (amd64_pseudo_register_write): Likewise.
3214 (amd64_init_abi): Set num_byte_regs to 20.
3215
86b17b60
PA
32162010-04-01 Pedro Alves <pedro@codesourcery.com>
3217
3218 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3219 (prev_breakpoint_count): New.
3220 (set_breakpoint_count): Adjust.
3221 (rbreak_start_breakpoint_count): New.
3222 (start_rbreak_breakpoints): Adjust.
3223 (end_rbreak_breakpoints): Adjust.
3224 (struct commands_info) <arg>: New field.
3225 (do_map_commands_command): Tweak output to include breakpoint spec
3226 range.
3227 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3228 ARG was empty on entry. Set INFO's arg.
3229 (create_breakpoint): Adjust.
3230
3231 * NEWS: Clarify `commands' changes.
3232
2c58c0a9
PA
32332010-04-01 Pedro Alves <pedro@codesourcery.com>
3234
3235 * tracepoint.c: Include stack.h.
3236 (struct add_local_symbols_data): New.
3237 (do_collect_symbol): New.
3238 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3239 iterate_over_block_local_vars.
3240 * stack.c (print_block_frame_locals): Rewrite as ...
3241 (iterate_over_block_locals): ... this. Take a callback function
3242 pointer and generic data pointer, and call that instead of
3243 print_variable_and_value.
3244 (struct print_variable_and_value_data): New.
3245 (do_print_variable_and_value): New.
3246 (iterate_over_block_local_vars): New, abstracted out from
3247 print_frame_local_vars.
3248 (print_frame_local_vars): Rewrite using
3249 iterate_over_block_local_vars.
3250 (iterate_over_block_arg_vars): New, abstracted out from
3251 print_frame_arg_vars.
3252 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3253 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3254 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3255
d476da0e
RE
32562010-03-31 Richard Earnshaw <rearnsha@arm.com>
3257
3258 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 3259 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
3260 PC register.
3261
8072405b
JK
32622010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 Fix crash on reading wrong function declaration DWARF.
3265 * dwarf2read.c (read_subroutine_type): New variable void_type.
3266 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3267 more close to their use.
3268
8bf6485c
SS
32692010-03-31 Stan Shebs <stan@codesourcery.com>
3270
3271 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 3272 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
3273 * tracepoint.c (save_trace_state_variables): New function.
3274 * tracepoint.h (save_trace_state_variables): Declare it.
3275
2ae2a0b7
PM
32762010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3277
1a161f72 3278 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 3279
86ffb506
KS
32802010-03-30 Keith Seitz <keiths@redhat.com>
3281
3282 * c-typeprint.c (c_type_print_args): Don't print "void"
3283 for java, regardless of whether it is TYPE_PROTOTYPED.
3284 Use the passed-in language instead of current_language.
3285 (c_type_print_varspec_suffix): Use current_language instead
3286 of assuming language_c.
3287 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3288 any return type specifier from the physname.
3289
956c2c8b
PA
32902010-03-30 Pedro Alves <pedro@codesourcery.com>
3291
3292 * tui/tui-interp.c (tui_is_toplevel): New.
3293 (tui_init): Set it.
3294 (tui_allowed_p): New.
3295 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3296 enabling it.
3297 * tui/tui.h (tui_allowed_p): Declare.
3298
98e5a990
TT
32992010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3300
3301 * serial.h: Include winsock2.h before windows.h.
3302
c8d5aac9
L
33032010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3304
3305 * NEWS: Mention xmlRegisters= in qSupported packet.
3306
3307 * i386-tdep.c: Include "remote.h".
3308 (_initialize_i386_tdep): Call register_remote_support_xml.
3309
3310 * remote.c (remote_support_xml): New.
3311 (register_remote_support_xml): Likewise.
3312 (remote_query_supported_append): Likewise.
3313 (remote_query_supported): Support remote_support_xml.
3314
3315 * remote.h (register_remote_support_xml): New.
3316
76a2b958
SS
33172010-03-29 Stan Shebs <stan@codesourcery.com>
3318
42e08e69
SS
3319 * tracepoint.c (trace_find_line_command): Remove dead code.
3320
409873ef
SS
3321 * tracepoint.h (struct uploaded_string): New struct.
3322 (struct uploaded_tp): New fields for source strings.
3323 * breakpoint.c (this_utp, next_cmd): New globals.
3324 (read_uploaded_action): New function.
3325 (create_tracepoint_from_upload): Fill in more parts
3326 of a tracepoint.
3327 * tracepoint.c (encode_source_string): New function.
3328 (trace_save): Write out source strings, fix error checks.
3329 (parse_tracepoint_definition): Add source string parsing.
3330 * remote.c (PACKET_TracepointSource): New packet type.
3331 (remote_download_command_source): New function.
3332 (remote_download_tracepoint): Download source pieces also.
3333 (_initialize_remote): Add packet config command.
3334
a0405854
SS
3335 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3336 expression handler.
3337
76a2b958
SS
3338 * tracepoint.c (start_tracing): Check tracepoints before sending
3339 commands to target, don't start if all tracepoints disabled.
3340
d350db38
PA
33412010-03-28 Pedro Alves <pedro@codesourcery.com>
3342
12f2d601 3343 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 3344
8b9b7ef8
SS
33452010-03-26 Stan Shebs <stan@codesourcery.com>
3346
3347 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3348
9766ced4
SS
33492010-03-26 Tom Tromey <tromey@redhat.com>
3350
3351 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3352
059acae7
UW
33532010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3354
3355 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3356 (skip_prologue_sal): Remove local definition.
3357 (resolve_sal_pc): Remove now unnecessary code.
3358 * linespec.c (minsym_found): Call skip_prologue_sal.
3359 * symtab.c (find_function_start_pc): Remove.
3360 (find_function_start_sal): Extract prologue skipping into ...
3361 (skip_prologue_sal): ... this new function. Handle code both
3362 with and without debug info. Respect SAL's explicit_pc and
3363 explicit_line flags. Inline old find_function_start_pc.
3364 * symtab.h (find_function_start_pc): Remove.
3365 (skip_prologue_sal): Add prototype.
3366
4a811a97
UW
33672010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3368
3369 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3370 for DW_TAG_imported_module children.
3371
907af001
UW
33722010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3373
3374 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3375 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3376 * completer.c (add_struct_fields): Fix inverted logic.
3377
dde2d684
UW
33782010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3379
3380 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3381
a609a0c8
PA
33822010-03-26 Pedro Alves <pedro@codesourcery.com>
3383
3384 * tracepoint.c (current_trace_status): Don't make sure error_desc
3385 is non-NULL here.
3386 (parse_trace_status): Release a previous error_desc string, and
3387 set it to NULL by default. If stop reason is tracepoint_error,
3388 make sure error_desc is not left NULL.
3389
610197fd
PA
33902010-03-26 Pedro Alves <pedro@codesourcery.com>
3391
3392 * tracepoint.c (trace_save): Remove X from tracepoint error
3393 description.
3394
99b5e152
PA
33952010-03-26 Pedro Alves <pedro@codesourcery.com>
3396
3397 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3398 the terror description. Don't expect an X prefix.
3399
6c28cbf2
SS
34002010-03-25 Stan Shebs <stan@codesourcery.com>
3401
3402 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3403 (struct trace_status): New field error_desc.
3404 * tracepoint.c (stop_reason_names): Add terror.
3405 (current_trace_status): Ensure non-NULL error description.
3406 (trace_status_command): Add error report.
3407 (trace_status_mi): Ditto.
3408 (trace_save): Add special case for error description.
3409 (parse_trace_status): Add case for errors.
3410
418835cc
KS
34112010-03-25 Keith Seitz <keiths@redhat.com>
3412
3413 * dwarf2read.c (read_subroutine_type): If the compilation unit
3414 language is Java, mark any formal parameter named "this" as
3415 artificial (GCC/43521).
3416 (dwarf2_name): Add special handling for Java constructors.
3417
aa7d318d
TT
34182010-03-25 Tom Tromey <tromey@redhat.com>
3419
3420 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3421 * infrun.c (handle_inferior_event): Change initialization of
3422 stop_stack_dummy.
3423 (handle_inferior_event): Change assignment to stop_stack_dummy.
3424 (normal_stop): Update use of stop_stack_dummy.
3425 (struct inferior_status) <stop_stack_dummy>: Change type.
3426 * inferior.h (stop_stack_dummy): Update.
3427 * infcmd.c (stop_stack_dummy): Change type.
3428 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3429 function.
3430 (call_function_by_hand): Call set_std_terminate_breakpoint.
3431 Rewrite std::terminate handling.
3432 * breakpoint.h (enum bptype) <bp_std_terminate,
3433 bp_std_terminate_master>: New.
3434 (enum stop_stack_kind): New.
3435 (struct bpstat_what) <call_dummy>: Change type.
3436 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3437 Declare.
3438 * breakpoint.c (create_std_terminate_master_breakpoint): New
3439 function.
3440 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3441 Call create_std_terminate_master_breakpoint.
3442 (print_it_typical): Handle new breakpoint kinds.
3443 (bpstat_stop_status): Handle bp_std_terminate_master.
3444 (bpstat_what): Correctly set call_dummy field. Handle
3445 bp_std_terminate_master and bp_std_terminate.
3446 (print_one_breakpoint_location): Update.
3447 (allocate_bp_location): Update.
3448 (set_std_terminate_breakpoint): New function.
3449 (delete_std_terminate_breakpoint): Likewise.
3450 (create_thread_event_breakpoint): Update.
3451 (delete_command): Update.
3452 (breakpoint_re_set_one): Update.
3453 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3454
82ccf5a5
JK
34552010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * symfile.c (build_section_addr_info_from_bfd): New.
3458 (build_section_addr_info_from_objfile): Base it on
3459 build_section_addr_info_from_bfd.
3460 (addrs_section_compar, addrs_section_sort): New.
3461 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3462 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3463 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3464
737c4c52
MS
34652010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3466
8d95cc3b 3467 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
3468 Remove unused local variable.
3469
95a42b64
TT
34702010-03-24 Tom Tromey <tromey@redhat.com>
3471
3472 PR breakpoints/9352:
3473 * NEWS: Mention changes to `commands' and `rbreak'.
3474 * symtab.c (do_end_rbreak_breakpoints): New function.
3475 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3476 end_rbreak_breakpoints.
3477 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3478 (set_breakpoint_count): Likewise. Clear last_was_multi.
3479 (multi_start, multi_end, last_was_multi): New globals.
3480 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3481 functions.
3482 (struct commands_info): New
3483 (do_map_commands_command): New function.
3484 (commands_command_1): New function.
3485 (commands_command): Use it.
3486 (commands_from_control_command): Likewise.
3487 (do_delete_breakpoint): New function.
3488 (delete_command): Use it.
3489 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3490 (do_map_disable_breakpoint): New function.
3491 (disable_command): Use it.
3492 (do_map_enable_breakpoint): New function.
3493 (enable_command): Use it.
3494 (enable_once_breakpoint): Add argument.
3495 (enable_once_command): Update.
3496 (enable_delete_breakpoint): Add argument.
3497 (enable_delete_command): Update.
3498 (break_command_really): Set last_was_multi when needed.
3499 (check_tracepoint_command): Fix formatting.
3500 (validate_commands_for_breakpoint): New function.
3501 (breakpoint_set_commands): Use it.
3502 (tracepoint_save_command): Update.
3503 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3504 Declare.
3505
9add0f1b
TT
35062010-03-24 Tom Tromey <tromey@redhat.com>
3507
3508 * breakpoint.h (struct counted_command_line): New struct.
3509 (struct breakpoint) <commands>: Change type.
3510 (struct bpstats) <commands>: Change type.
3511 <commands_left>: New field.
3512 * breakpoint.c (alloc_counted_command_line): New function.
3513 (incref_counted_command_line): Likewise.
3514 (decref_counted_command_line): Likewise.
3515 (do_cleanup_counted_command_line): Likewise.
3516 (make_cleanup_decref_counted_command_line): Likewise.
3517 (breakpoint_set_commands): Use decref_counted_command_line and
3518 alloc_counted_command_line.
3519 (commands_command): Don't error if breakpoint commands are
3520 executing.
3521 (commands_from_control_command): Likewise.
3522 (bpstat_free): Update.
3523 (bpstat_copy): Likewise.
3524 (bpstat_clear_actions): Likewise.
3525 (bpstat_do_actions_1): Likewise.
3526 (bpstat_stop_status): Likewise.
3527 (print_one_breakpoint_location): Likewise.
3528 (delete_breakpoint): Likewise.
3529 (bpstat_alloc): Initialize new field.
3530 (tracepoint_save_command): Update.
3531 * tracepoint.c (encode_actions): Update.
3532 (trace_dump_command): Update.
3533
a6c727b2
DJ
35342010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3535
3536 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3537 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3538 (read_structure_type): For RealView, set TYPE_STUB on structures with
3539 no byte size and no children.
3540 (read_subroutine_type): Mark functions as prototyped by default.
3541 * symtab.c (producer_is_realview): New function.
3542 * symtab.h (expand_line_sal): Fix declaration formatting.
3543 (producer_is_realview): Declare.
3544
0d39a070
DJ
35452010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3546
3547 * arm-tdep.c (skip_prologue_function): New function.
3548 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3549 (thumb_analyze_prologue): Document return value. Recognize more
3550 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3551 Add debug output.
3552 (arm_skip_prologue): Remove call dummy check. Check the prologue
3553 for non-GNU compilers.
3554 (arm_instruction_changes_pc): New function.
3555 (arm_analyze_prologue): New function, broken out from
3556 arm_scan_prologue. Recognize more ARM instructions and skippable
3557 calls. Update comments. Handle NULL cache. Return the address
3558 of the first unrecognized instruction. Do not skip past other
3559 instructions which change control flow. Add debug output.
3560 (arm_scan_prologue): Use arm_analyze_prologue.
3561 (ARM_PC_32): Delete.
3562 (shifted_reg_val): Simplify ARM_PC_32 check.
3563
4baf5cf4
VP
35642010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3565
3566 * tracepoint.c (tvariables_info_1): Actually compute
3567 the number of rows in the result.
3568
4a5e7a5b
PA
35692010-03-24 Pedro Alves <pedro@codesourcery.com>
3570
3571 * remote.c (crc32): Constify `buf' parameter.
3572 (remote_verify_memory): New, abstracted out from...
3573 (compare_sections_command): ... this. Remove hardcoded target
3574 checks.
3575 (init_remote_ops): Install remote_verify_memory.
3576 * target.c (target_verify_memory): New.
3577 * target.h (struct target_ops) <to_verify_memory>: New field.
3578 (target_verify_memory): Declare.
3579
011aacb0
VP
35802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3581
3582 Implement -trace-save.
3583
3584 * mi-cmds.h (mi_cmds_trace_save): Declare.
3585 * mi-cmds.c (mi_cmds): Register -trace-save.
3586 * mi/mi-main.c (mi_cmd_trace_save): New.
3587 * remote.c (remote_save_trace_data): Take const parameter.
3588 * target.h (struct target_ops::to_save_trace_data): Take
3589 const parameter.
3590 * target.c (update_current_target): Adjust to the above.
3591 * tracepoint.c (trave_save): New, extracted from
3592 (trace_save_command): ...this.
3593 (tfile_trace_find): Remove message that is unnecessary now
3594 that 'tfind' reports found frame.
3595 * tracepoint.h (trace_save): Declare.
3596
f197e0f1
VP
35972010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3598
3599 Implement -trace-find.
3600
3601 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3602 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3603 * mi/mi-main.c (mi_cmd_trace_find): New.
3604 * target.h (struct target_ops): Document to_trace_find.
3605 * tracepoint.h (tfind_1): Declare.
3606 * tracepoint.c (finish_tfind_command): Rename to...
3607 (tfind_1): ...this.
3608 * remote.c (remote_trace_find): Return -1 if target say
3609 there's no frame. Improve error diagnostics.
3610
40e1c229
VP
36112010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3612
3613 -trace-define-variable and -trace-list-variables.
3614
3615 * tracepoint.c (create_trace_state_variable): Make
3616 private copy of name, as opposed to assuming the
3617 pointer lives forever.
3618 (tvariables_info_1): New.
3619 (tvariables_info): Use the above.
3620 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3621 Declare.
3622 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3623 and -trace-list-variables.
3624 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3625 (mi_cmd_trace_list_variables): New.
3626 * mi/mi-main.c (mi_cmd_trace_define_variable)
3627 (mi_cmd_trace_list_variables): New.
3628
9b4c786c
VP
36292010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3630
3631 Implement -break-passcount.
3632
3633 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3634 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3635 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3636
f224b49d
VP
36372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3638
3639 -trace-start/-trace-end/-trace-status.
3640
3641 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3642 and -trace-stop.
3643 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3644 (mi_cmd_trace_stop): Declare.
3645 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3646 (mi_cmd_trace_stop): New.
3647 * tracepoint.c (start_tracing): New, extracted from...
3648 (trace_start_command): ...this.
3649 (trace_status_mi): New.
3650 * tracepoint.h (struct trace_status): Document
3651 stopping_tracepoint.
3652 (start_tracing, stop_tracing, trace_status_mi): Declare.
3653
6534d786
VP
36542010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3655
3656 Implement creating tracepoints with -break-insert.
3657
3658 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3659 to mean that tracepoint should be created.
3660
51661e93
VP
36612010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3662
3663 * breakpoint.c (check_no_tracepoint_commands): Use
3664 current spelling of 'teval'.
3665
a7bdde9e
VP
36662010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3667
3668 Unify actions and commands
3669
3670 * defs.h (read_command_lines, read_command_lines_1): New
3671 parameters validator and closure.
3672 * tracepoint.h (struct action_line): Remove.
3673 * breakpoint.h (struct breakpoint): Remove the 'actions'
3674 field.
3675 * defs.h (enum command_control_type): New value
3676 while_stepping_control.
3677 (struct command_line): Add comments.
3678 * breakpoint.c (breakoint_is_tracepoint): New.
3679 (breakpoint_set_commands): For tracepoints,
3680 verify the commands are permissible.
3681 (check_tracepoint_commands): New.
3682 (commands_command): Require that each new line is validated using
3683 check_tracepoint_command, if we set commands for a tracepoint.
3684 (create_tracepoint_from_upload): Likewise.
3685 (print_one_breakpoint_location): Remove the code to print
3686 actions specifically.
3687 (tracepoint_save_command): Relay to print_command_lines.
3688 * cli/cli-script.c (process_next_line): New parameters validator
3689 and closure. Handle 'while-stepping'. Call validator if not null.
3690 (read_command_lines, read_command_lines1): Likewise.
3691 (recurse_read_control_structure): New parameters validator and
3692 closure. Handle while_stepping_control.
3693 (print_command_lines): Handle while-stepping.
3694 (get_command_line, define_command, document_command): Adjust.
3695 * remote.c (remote_download_tracepoint): Adjust.
3696 * tracepoint.c (make_cleanup_free_actions, read_actions)
3697 (free_actions, do_free_actions_cleanup): Remove.
3698 (trace_actions_command): Use read_command_lines.
3699 (validate_actionline): Use error in one place.
3700 (encode_actions_1): New, extracted from...
3701 (encode_actions): ...this. Also use cleanups for exception
3702 safety.
3703 (trace_dump_command): Adjust.
3704 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3705 it's tracepoint.
3706
64e3cf3d
MF
37072010-03-23 Mike Frysinger <vapier@gentoo.org>
3708
3709 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3710
52e9fde8
SS
37112010-03-22 Stan Shebs <stan@codesourcery.com>
3712
3713 * value.c (value_static_field): Be lazy about the field's value.
3714
508ccb1f
TT
37152010-03-22 Reid Kleckner <reid@kleckner.net>
3716
3717 PR gdb/11094
3718 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3719 bp_jit_event.
3720 (disable_breakpoints_in_shlibs): Likewise.
3721
acebe513
UW
37222010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3723
3724 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3725 GCC 4.1 debug info generation (GCC PR c++/28460).
3726 (determine_prefix): Likewise.
3727
957b8b5a
DJ
37282010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3729
3730 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3731 get_current_arch.
3732 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3733
3b11a015
SS
37342010-03-19 Stan Shebs <stan@codesourcery.com>
3735
3736 * ax-gdb.c (gen_fetch): Handle bool.
3737 (gen_usual_unary): Ditto.
3738 (gen_cast): Ditto.
3739 (gen_equal): New function.
3740 (gen_less): New function.
3741 (gen_expr_binop_rest): Call them, also return integer type from
3742 logical operations.
3743 (gen_expr): Ditto.
3744
20781792
TT
37452010-03-19 Tom Tromey <tromey@redhat.com>
3746
3747 * jv-lang.c (jv_dynamics_objfile_data_key)
3748 (jv_type_objfile_data_key): New globals.
3749 (class_symtab): Move earlier.
3750 (jv_per_objfile_free): New function.
3751 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3752 parameter.
3753 Remove ancient #if 1.
3754 (add_class_symbol): Remove redundant declaration.
3755 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3756 (java_link_class_type): Mark as static. Update.
3757 (jv_clear_object_type): New function.
3758 (set_java_object_type): Likewise.
3759 (get_java_object_type): Use set_java_object_type.
3760 (is_object_type): Likewise.
3761 (_initialize_java_language): Register new objfile keys.
3762 (get_java_class_symtab): Add 'gdbarch' parameter.
3763 (add_class_symtab_symbol): Update.
3764 (type_from_class): Update.
3765
cf3e25ca
SS
37662010-03-19 Stan Shebs <stan@codesourcery.com>
3767
8d95cc3b 3768 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 3769
f1ae44c9 37702010-03-18 Joel Brobecker <brobecker@adacore.com>
3771
3772 GDB 7.1 released.
3773
4daf5ac0
SS
37742010-03-18 Stan Shebs <stan@codesourcery.com>
3775 Pedro Alves <pedro@codesourcery.com>
3776
3777 * target.h (struct target_ops): New method
3778 to_set_circular_trace_buffer.
3779 (target_set_circular_trace_buffer): New macro.
3780 * target.c (update_current_target): Add
3781 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3782 default behavior.
3783 * remote.c (remote_set_circular_trace_buffer): New function.
3784 (init_remote_ops): Add it to vector.
3785 * tracepoint.h (struct trace_status): New field traceframes_created,
3786 change buffer_size and buffer_free to int.
3787 * tracepoint.c (circular_trace_buffer): New global.
3788 (start_tracing): Send values of disconnected tracing and circular
3789 trace buffer settings.
3790 (set_circular_trace_buffer): New function.
3791 (parse_trace_state): Handle total space and frames created.
3792 (trace_status_command): Display total space and total frames
3793 created.
3794 (trace_save): Write out new status values.
3795 (parse_trace_status): Set traceframe_count, traceframes_created,
3796 buffer_free and buffer_size to -1 by default.
3797 (_initialize_tracepoint): New setshow for circular-trace-buffer.
3798 * NEWS: Mention the circular trace buffer option.
3799
40c549d6
TT
38002010-03-18 Tom Tromey <tromey@redhat.com>
3801
3802 * infcmd.c (finish_command_continuation): Wrap print_return_value
3803 in TRY_CATCH.
3804
e8d05480
JB
38052010-03-18 Joel Brobecker <brobecker@adacore.com>
3806
3807 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3808 DIE has a name before creating the associated partial symbol.
3809 (read_func_scope): Emit a complaint if the subprogram does not
3810 have a name or when we can't extract the subprogram PC bounds.
3811
441b986a
UW
38122010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3813
3814 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3815 instead of selected frame architecture.
3816
4247603b
PA
38172010-03-18 Pedro Alves <pedro@codesourcery.com>
3818
3819 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
3820 a valid selected thread, and that it is not running.
3821 (advance_command): Ditto.
3822 (finish_command): Ditto.
3823
400c6af0
SS
38242010-03-17 Stan Shebs <stan@codesourcery.com>
3825
3a96536b
SS
3826 * ax-gdb.c (require_rvalue): Disallow non-scalars.
3827
573cda03
SS
3828 * infcall.c: Include tracepoint.h.
3829 (call_function_by_hand): Disallow calls in tfind mode.
3830 * infcmd.c: Include tracepoint.h.
3831 (ensure_not_tfind_mode): New function.
3832 (continue_1): Call it.
3833 (step_1) Ditto.
3834 (jump_command): Ditto.
3835 (signal_command): Ditto.
3836 (advance_command): Ditto.
3837 (until_command): Ditto.
3838 (finish_command): Ditto.
3839 * tracepoint.h (disconnect_or_stop_tracing): Declare.
3840
400c6af0
SS
3841 * ax-gdb.h (struct axs_value): New field optimized_out.
3842 (gen_trace_for_var): Add gdbarch argument.
3843 * ax-gdb.c (gen_trace_static_fields): New function.
3844 (gen_traced_pop): Call it, add gdbarch argument.
3845 (gen_trace_for_expr): Update call to it.
3846 (gen_trace_for_var): Ditto, and report optimized-out variables.
3847 (gen_struct_ref_recursive): Check for optimized-out value.
3848 (gen_struct_elt_for_reference): Ditto.
3849 (gen_static_field): Pass gdbarch instead of expression, assume
3850 optimization if field not found.
3851 (gen_var_ref): Set the optimized_out flag.
3852 (gen_expr): Error on optimized-out variable.
3853 * tracepoint.c (collect_symbol): Handle struct-valued vars as
3854 expressions, skip optimized-out variables with computed locations.
3855 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3856 erroring out if location expression missing.
3857 (loclist_tracepoint_var_ref): Don't error out here.
3858
a3b2a86b
TT
38592010-03-17 Tom Tromey <tromey@redhat.com>
3860
3861 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3862 DWARF data is available.
3863
38963c97
DJ
38642010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3865
3866 * symfile.c (generic_load): Reset breakpoints after loading.
3867
ddabfc73
TT
38682010-03-17 Tom Tromey <tromey@redhat.com>
3869
3870 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3871
d8c09fb5
JK
38722010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3875 create_breakpoint call, adjust the parameters.
3876
bbb0eef6
JK
38772010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 Chandru <chandru@in.ibm.com>
3879
3880 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3881 * valarith.c (value_subscripted_rvalue): Suppress error if
3882 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3883
46956e39
HZ
38842010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
3885
3886 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3887
b8d088ac
JB
38882010-03-16 Joel Brobecker <brobecker@adacore.com>
3889
3890 * ada-tasks.c (task_command_1): Check that the task ptid is valid
3891 before doing the associated thread switch.
3892
322be962
DJ
38932010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3894
3895 * MAINTAINERS: Update my email address.
3896
8cdf0e15
VP
38972010-03-16 Vladimir Prus <vladimir@codesourcery.com>
3898
3899 Simplify MI breakpoint setting.
3900
3901 * breakpoint.c (break_command_really): Make nonstatic and
3902 rename to...
3903 (create_breakpoint): ...this. Rename prior function by this name
3904 to...
3905 (create_breakpoint_sal): ...this.
3906 (create_breakpoints): Rename to...
3907 (create_breakpoints_sal): ...this.
3908 (set_breakpoint): Remove.
3909 * breakpoint.h: Adjust to above changes.
3910 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3911
b6e7192f
SS
39122010-03-15 Stan Shebs <stan@codesourcery.com>
3913
3914 * ax-gdb.c: Include cp-support.h.
3915 (find_field): Remove.
3916 (gen_primitive_field): New function.
3917 (gen_struct_ref_recursive): New function.
3918 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3919 of find_field.
3920 (gen_static_field): New function.
3921 (gen_struct_elt_for_reference): New.
3922 (gen_namespace_elt): New.
3923 (gen_maybe_namespace_elt): New.
3924 (gen_aggregate_elt_ref): New.
3925 (gen_expr): Add OP_SCOPE, display opcode name in error message.
3926
1054b214
TT
39272010-03-15 Tom Tromey <tromey@redhat.com>
3928
3929 * dwarf2read.c (die_needs_namespace): Also return 0 for
3930 DW_TAG_subprogram.
3931
13387711
SW
39322010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
3933
3934 PR c++/7936:
3935 * cp-support.h: Added char *declaration element to using_direct
3936 data struct.
3937 (cp_add_using): Added char *declaration argument.
3938 (cp_add_using_directive): Ditto.
3939 (cp_lookup_symbol_imports): made extern.
3940 * cp-namespace.c: Updated with the above changes.
3941 * dwarf2read.c (read_import_statement): Ditto.
3942 (read_namespace): Ditto.
3943 (read_import_statement): Support import declarations.
3944 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3945 declarations.
3946 Added support for 'declaration_only' search.
3947 (cp_lookup_symbol_namespace): Attempt to search for the name as
3948 is before consideration of imports.
3949 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3950 search at every block level search.
3951 Now takes language argument.
3952 (lookup_symbol_aux): Updated.
3953
6e31430b
TT
39542010-03-15 Tom Tromey <tromey@redhat.com>
3955
3956 * c-exp.y (name_not_typename): Add 'operator' clause.
3957
4dea3bb7 39582010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
3959
3960 * configure.ac: Exit if ${gdb_target_obs}" is not set.
3961 * configure: Regenerate.
3962
4d9743af
JK
39632010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3964
3965 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3966 and ".sdynbss". Update the comment.
3967
f75150fe
JZ
39682010-03-15 Jie Zhang <jie@codesourcery.com>
3969
3970 * MAINTAINERS: Update my email address.
3971
3c13bc11
DJ
39722010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3973
3974 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3975
43484f03
DJ
39762010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3977
3978 * charset.c [USE_WIN32API]: Include <windows.h>.
3979 (_initialize_charset): Correct type of w32_host_default_charset.
3980
5f25d77d
PA
39812010-03-14 Pedro Alves <pedro@codesourcery.com>
3982
3983 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3984
1c809c68
TT
39852010-03-12 Tom Tromey <tromey@redhat.com>
3986
3987 PR c++/9708:
3988 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3989 in a lexical block does not need a namespace.
3990 (new_symbol) <DW_TAG_variable>: Put extern variables on
3991 list_in_scope in all cases.
3992
948103cf
SS
39932010-03-12 Stan Shebs <stan@codesourcery.com>
3994
3995 * ax-gdb.c (gen_expr): Add shift expressions.
3996 (gen_expr_binop_rest): Ditto.
3997
00ae8fef
SW
39982010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
3999
4000 * buildsym.c (finish_block): Reset using_directives pointer
4001 after block initialization.
4002
9cad29ac
L
40032010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4004
4005 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4006 * i386-tdep.c (i386_word_names): Likewise.
4007
2f4d8875
PA
40082010-03-12 Pedro Alves <pedro@codesourcery.com>
4009
4010 * target.c (memory_xfer_partial): Don't use the stack cache if
4011 inspecting trace frames.
4012 * tracepoint.c (finish_tfind_command): Invalidate the target
4013 dcache.
4014
ccf26247
JK
40152010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4018 for the PIC displacement, print also the displacement value.
4019 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4020
477c84a7
KB
40212010-03-10 Kevin Buettner <kevinb@redhat.com>
4022
4023 * remote-mips.c (close_ports, mips_initialize_cleanups)
4024 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4025 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4026 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4027 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4028 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4029 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4030 comments describing each of these functions.
4031 (mips_enter_debug, mips_exit_debug, common_open)
4032 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4033 blank line after the comment describing the function.
4034
01c30d6e
JK
40352010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4038 parameter displacementp. Update comment.
4039 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4040 element exists. Return if svr4_exec_displacement was not successful.
4041 Update comment.
4042
09919ac2
JK
40432010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4044 Daniel Jacobowitz <dan@codesourcery.com>
4045
4046 * solib-svr4.c (read_program_header): Support type == -1 to read
4047 all program headers.
4048 (read_program_headers_from_bfd): New function.
4049 (svr4_static_exec_displacement): Remove and move the comment ...
4050 (svr4_exec_displacement): ... here. Remove variable found. New
4051 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4052 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4053 targets using read_program_headers_from_bfd. Remove the call of
4054 svr4_static_exec_displacement.
4055
d146bf1e
TT
40562010-03-10 Tom Tromey <tromey@redhat.com>
4057
4058 * dwarf2read.c (struct pubnames_header): Remove.
4059 (_PUBNAMES_HEADER): Remove.
4060 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4061 (struct aranges_header): Remove.
4062 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4063 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4064 (PUBNAMES_SECTION): Remove.
4065 (ARANGES_SECTION): Remove.
4066 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4067 (dwarf2_build_psymtabs): Remove dead code.
4068 (dwarf2_build_psymtabs_easy): Remove.
4069
be391dca
TT
40702010-03-10 Tom Tromey <tromey@redhat.com>
4071
4072 * elfread.c (elf_symfile_read): Don't call
4073 dwarf2_build_frame_info.
4074 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4075 (struct dwarf2_per_objfile) <objfile>: New field.
4076 (dwarf2_has_info): Now idempotent. Set objfile field.
4077 (dwarf2_read_section): Check and set readin field. Call
4078 posix_madvise.
4079 (dwarf2_build_psymtabs): Don't read all sections.
4080 (read_type_comp_unit_head): Read types section.
4081 (create_debug_types_hash_table): Likewise.
4082 (init_cu_die_reader): Add asserts.
4083 (process_type_comp_unit): Add assert.
4084 (dwarf2_build_psymtabs_hard): Read info section.
4085 (load_partial_comp_unit): Add assert.
4086 (create_all_comp_units): Read info section.
4087 (load_full_comp_unit): Likewise.
4088 (dwarf2_ranges_read): Read ranges section.
4089 (dwarf2_record_block_ranges): Add assert.
4090 (dwarf2_read_abbrevs): Read abbrev section.
4091 (read_indirect_string): Read str section.
4092 (dwarf_decode_line_header): Read line section.
4093 (read_signatured_type_at_offset): Read types section.
4094 (dwarf_decode_macros): Read macinfo section.
4095 (dwarf2_symbol_mark_computed): Read loc section.
4096 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4097 dwarf2_build_frame_info.
4098 (dwarf2_build_frame_info): Unconditionally set
4099 dwarf2_frame_objfile_data on the objfile.
4100 * configure.ac: Check for posix_madvise.
4101 * config.in, configure: Rebuild.
4102
ccefe4c4
TT
41032010-03-10 Tom Tromey <tromey@redhat.com>
4104
e38df1d0
TT
4105 * xcoffread.c (xcoff_start_psymtab): Update.
4106 (xcoff_end_psymtab): Update.
4107 * psymtab.c (allocate_psymtab): Remove dead code.
4108 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4109 void*.
4110 * mdebugread.c (parse_partial_symbols): Update.
4111 (new_psymtab): Likewise.
4112 * dwarf2read.c (process_psymtab_comp_unit): Update.
4113 (psymtab_to_symtab_1): Update.
4114 * dbxread.c (start_psymtab): Update.
4115 (end_psymtab): Likewise.
4116
be391dca 41172010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 4118
ccefe4c4
TT
4119 * xcoffread.c: Include psymtab.h.
4120 (xcoff_sym_fns): Update.
4121 * symtab.h (struct partial_symbol): Remove.
4122 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4123 (struct partial_symtab): Remove.
4124 (PSYMTAB_TO_SYMTAB): Remove.
4125 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4126 (find_pc_sect_psymtab): Remove.
4127 (find_pc_sect_symtab_via_partial): Declare.
4128 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4129 (find_main_psymtab): Remove.
4130 (find_main_filename): Declare.
4131 (fixup_psymbol_section): Remove.
4132 (fixup_section): Declare.
4133 * symtab.c: Include psymtab.h.
4134 (lookup_symtab): Use lookup_symtab method.
4135 (lookup_partial_symtab): Remove.
4136 (find_pc_sect_psymtab_closer): Remove.
4137 (find_pc_sect_psymtab): Remove.
4138 (find_pc_sect_symtab_via_partial): New function.
4139 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4140 (fixup_section): No longer static.
4141 (fixup_psymbol_section): Remove.
4142 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4143 (lookup_global_symbol_from_objfile): Likewise.
4144 (lookup_symbol_aux_psymtabs): Remove.
4145 (lookup_symbol_aux_quick): New function.
4146 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4147 (lookup_partial_symbol): Remove.
4148 (basic_lookup_transparent_type_quick): New function.
4149 (basic_lookup_transparent_type): Use it.
4150 (find_main_psymtab): Remove.
4151 (find_main_filename): New function.
4152 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4153 (find_line_symtab): Use expand_symtabs_with_filename method.
4154 (output_partial_symbol_filename): New function.
4155 (sources_info): Use map_partial_symbol_filenames.
4156 (struct search_symbols_data): New type.
4157 (search_symbols_file_matches): New function.
4158 (search_symbols_name_matches): Likewise.
4159 (search_symbols): Use expand_symtabs_matching method.
4160 (struct add_name_data): Rename from add_macro_name_data.
4161 (add_macro_name): Update.
4162 (add_partial_symbol_name): New function.
4163 (default_make_symbol_completion_list): Use
4164 map_partial_symbol_names.
4165 (struct add_partial_symbol_name): New type.
4166 (maybe_add_partial_symtab_filename): New function.
4167 (make_source_files_completion_list): Use
4168 map_partial_symbol_filenames.
4169 (expand_line_sal): Use expand_symtabs_with_filename method.
4170 * symmisc.c: Include psymtab.h.
4171 (print_objfile_statistics): Use print_stats method.
4172 (dump_objfile): Use dump method.
4173 (dump_psymtab, maintenance_print_psymbols)
4174 (maintenance_info_psymtabs, maintenance_check_symtabs)
4175 (extend_psymbol_list): Remove.
4176 * symfile.h (struct quick_symbol_functions): New struct.
4177 (struct sym_fns) <qf>: New field.
4178 (sort_pst_symbols): Remove.
4179 (increment_reading_symtab): Declare.
4180 * symfile.c: Include psymtab.h.
4181 (compare_psymbols, sort_pst_symbols): Remove.
4182 (psymtab_to_symtab): Remove.
4183 (increment_reading_symtab): New function.
4184 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4185 method.
4186 (set_initial_language): Use find_main_filename.
4187 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4188 (free_named_symtabs): Remove unused code.
4189 (start_psymtab_common, add_psymbol_to_bcache)
4190 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4191 Remove.
4192 * stack.c: Include psymtab.h, symfile.h.
4193 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4194 * source.h (psymtab_to_fullname): Don't declare.
4195 * source.c: Include psymtab.h.
4196 (select_source_symtab): Use find_last_source_symtab method.
4197 (forget_cached_source_info): Use forget_cached_source_info
4198 method.
4199 (find_and_open_source): No longer static.
4200 (psymtab_to_fullname): Remove.
4201 * somread.c: Include psymtab.h.
4202 (som_sym_fns): Update.
4203 * psympriv.h: New file.
4204 * psymtab.h: New file.
4205 * psymtab.c: New file.
4206 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4207 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4208 * objfiles.c: Include psymtab.h.
4209 (objfile_relocate1): Use relocate method.
4210 (objfile_has_partial_symbols): Use has_symbols method.
4211 * mipsread.c: Include psymtab.h.
4212 (ecoff_sym_fns): Update.
4213 * mi/mi-cmd-file.c: Include psymtab.h.
4214 (print_partial_file_name): New function.
4215 (mi_cmd_file_list_exec_source_files): Use
4216 map_partial_symbol_filenames.
4217 * mdebugread.c: Include psympriv.h.
4218 * machoread.c: Include psympriv.h.
4219 (macho_sym_fns): Update.
4220 * m2-exp.y (yylex): Use lookup_symtab.
4221 * elfread.c: Include psympriv.h.
4222 (elf_sym_fns): Update.
4223 * dwarf2read.c: Include psympriv.h.
4224 * dbxread.c: Include psympriv.h.
4225 (aout_sym_fns): Update.
4226 * cp-support.c: Include psymtab.h.
4227 (read_in_psymtabs): Remove.
4228 (make_symbol_overload_list_qualified): Use
4229 expand_symtabs_for_function method.
4230 * coffread.c: Include psympriv.h.
4231 (coff_sym_fns): Update.
4232 * blockframe.c: Include psymtab.h.
4233 (find_pc_partial_function): Use find_pc_sect_symtab method.
4234 * ada-lang.h (ada_update_initial_language): Update.
4235 * ada-lang.c: Include psymtab.h.
4236 (ada_update_initial_language): Remove 'main_pst' argument.
4237 (ada_lookup_partial_symbol): Remove.
4238 (struct ada_psym_data): New type.
4239 (ada_add_psyms): New function.
4240 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4241 (struct add_partial_datum): New type.
4242 (ada_add_partial_symbol_completions): New function.
4243 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4244 (ada_exception_support_info_sniffer): Update.
4245 * Makefile.in (SFILES): Add psymtab.c.
4246 (COMMON_OBS): Add psymtab.o.
4247 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4248
7d8500b7
PM
42492010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4250
4251 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4252
c0cc3a76
SW
42532010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4254
4255 PR C++/11236:
4256 * cp-namespace.c (cp_add_using): Deleted.
4257 (cp_add_using_directive): Use obstack allocations.
4258 Merged the function cp_add_using into this one.
4259 Added 'struct obstack *' argument.
4260 (cp_scan_for_anonymous_namespaces): Updated.
4261 * cp-support.h: Updated.
4262 * dwarf2read.c (read_import_statement): Updated.
4263 (read_namespace): Updated.
4264
452fa064
CF
42652010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4266
4267 * windows-nat.c (cygwin_conv_path): Remove old macro.
4268
60e1c644
PA
42692010-03-10 Pedro Alves <pedro@codesourcery.com>
4270
4271 * breakpoint.c (condition_command): Handle watchpoint conditions.
4272 (is_hardware_watchpoint): Add comment.
4273 (is_watchpoint): New.
4274 (update_watchpoint): Don't reparse the watchpoint's condition
4275 unless necessary.
4276 (WP_IGNORE): New.
4277 (watchpoint_check): Use it.
4278 (bpstat_check_watchpoint): Handle it.
4279 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4280 conditions in a frame where it makes sense.
4281 (watch_command_1): Store the innermost block of the condition
4282 expression.
4283 (delete_breakpoint): Delete the watchpoint condition expression.
4284 * breakpoint.h (struct bp_location) <cond>: Update comment.
4285 (struct breakpoint): New field `cond_exp_valid_block'.
4286
af6b7be1
JB
42872010-03-09 Joel Brobecker <brobecker@adacore.com>
4288
4289 Adjust handling of Ada DIEs after dwarf2_physname patch.
4290 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4291
60c5c021
CF
42922010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4293 Pierre Muller <muller@ics.u-strasbg.fr>
4294
4295 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4296 from/to posix/win32.
4297 (windows_make_so): Use non-Cygwin 1.7 specific function.
4298 (windows_create_inferior): Make sure that cygallargs points to
4299 original args in non Cygwin 1.7. case.
4300
60a1502a
MS
43012010-03-09 Michael Snyder <msnyder@vmware.com>
4302
4303 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4304 after target_read_memory to get host byte order.
4305 (i386_process_record): Ditto.
4306
94af9270
KS
43072010-03-09 Keith Seitz <keiths@redhat.com>
4308
4309 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4310 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4311 print out const or volatile qualifiers, too.
4312 (c_type_print_args): Add parameters show_artificial and language.
4313 Skip artificial parameters when requested.
4314 Use the appropriate language printer.
4315 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4316 parameters and pass language_c.
4317 * dwarf2read.c (die_list): New file global.
4318 (struct partial_die_info): Update comments for name field.
4319 (pdi_needs_namespace): Renamed to ...
4320 (die_needs_namespace): ... this. Rewrite.
4321 (dwarf2_linkage_name): Remove.
4322 (add_partial_symbol): Do not predicate the call to
4323 partial_die_full_name based on pdi_needs_namespace.
4324 Remove call to cp_check_possible_namespace_symbols and associated
4325 outdated comments.
4326 (guess_structure_name): Do not inspect child subprogram DIEs.
4327 (dwarf2_fullname): Update comments.
4328 Use die_needs_namespace to assist in computing the name.
4329 (read_func_scope): Use dwarf2_name to get the DIE's name.
4330 Use dwarf2_physname to get the "linkage name" of the DIE.
4331 (dwarf2_add_member_field): Use dwarf2_physname instead of
4332 dwarf2_linkage_name.
4333 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4334 (determine_class): Remove.
4335 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4336 except Ada.
4337 (new_symbol): Unconditionally call dwarf2_name.
4338 Compute the "linkage name" using dwarf2_physname.
4339 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4340 When determining to scan for anonymous C++ namespaces, ignore
4341 the linkage name.
4342 (dwarf2_physname): New function.
4343 (dwarf2_full_name): Move content to new function and call
4344 that.
4345 (dwarf2_compute_name): "New" function.
4346 (_initialize_dwarf2_read): Initialize die_list.
4347 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4348 physname.
4349 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4350 without a demangled name.
4351 Print out type information for non-virtual methods.
c8d5aac9 4352 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 4353 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
4354 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4355 (decode_compound): Stop consuming at an open parenthesis.
4356 Keep template parameters.
4357 Keep any overload information.
4358 Keep keywords like "const".
4359 Remove paren_pointer.
4360 Move is_quoted check from set_flags to here.
4361 Remove #if 0 code from 2000. Ten years is long enough.
4362 (find_method): Before comparing symbol names, canonicalize the string
4363 from the user.
4364 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
4365 (find_method_overload_end): New function.
4366 (set_flags): Remove.
c8d5aac9
L
4367 (decode_compound): Assume that parentheses are matched.
4368 It's a lot easier.
94af9270
KS
4369 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4370 to cplus_demangle.
4371 * linespec.c (decode_line_1): Keep important keywords like
4372 "const" and "volatile".
4373 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4374 * typeprint.h (c_type_print_args): Add declaration.
4375 * ui-file.c (do_ui_file_obsavestring): New function.
4376 (ui_file_obsavestring): New function.
4377 * ui-file.h (ui_file_obsavestring): Add declaration.
4378 * valops.c (find_overload_match): Resolve the object to
4379 a non-pointer type.
4380 If the object is a data member, search the object for the member
4381 and return with staticp set.
4382 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4383 Do not attempt to extract a function name from non-function types.
4384 If the extracted function name and the original name are the same,
4385 we don't have a C++ method.
4386
8d95cc3b
PA
4387 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4388 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
4389
4390 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4391 and arguments from symbol lookups.
4392 * ax-gdb.c (gen_expr): Likewise.
4393 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4394 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4395 lookup_possible_namespace_symbol): Likewise.
4396 * cp-support.c (read_in_psymtabs): Likewise.
4397 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4398 * language.h (la_lookup_symbol_nonlocal): Likewise.
4399 * scm-valprint.c (scm_inferior_print): Likewise.
4400 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4401 * solib-svr.c (elf_lookup_lib): Likewise.
4402 * solib.c (show_auto_solib_add): Likewise.
4403 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4404 * symmisc.c (maintenance_check_symtabs): Likewise.
4405 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4406 lookup_symbol_aux_local, lookup_symbol_aux_block,
4407 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4408 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4409 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4410 basic_lookup_transparent_type, find_main_psymtab,
4411 lookup_block_symbol): Likewise.
4412 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4413 lookup_symbol_global, lookup_symbol_aux_block,
4414 lookup_symbol_partial_symbol, lookup_block_symbol,
4415 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4416
9cb74f47
PM
44172010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4418
4419 * python/python-internal.h: Include symtab.h.
4420
af6b7be1
JB
44212010-03-09 Joel Brobecker <brobecker@adacore.com>
4422 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
4423
4424 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4425 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4426 indentation.
4427
bad56014
TT
44282010-03-08 Tom Tromey <tromey@redhat.com>
4429
4430 * breakpoint.c (breakpoint_1): Add "QUIT".
4431
08105857
PA
44322010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4433 Pedro Alves <pedro@codesourcery.com>
4434
4435 * solib.c (solib_find): Replace extension if
4436 solib_symbols_extension is set in the target gdbarch.
4437 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4438 solib_symbols_extension to "sym".
4439 * gdbarch.sh (solib_symbols_extension): New variable.
4440 (pstring): New function.
4441 * gdbarch.h, gdbarch.c: Regenerate.
4442
7c953934
TT
44432010-03-08 Tom Tromey <tromey@redhat.com>
4444
4445 PR cli/9591:
4446 * NEWS: Update.
4447 * utils.c: Include main.h.
4448 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4449 (defaulted_query): Use default answer if `batch_flag'.
4450 * main.h (batch_flag): Declare.
4451 * main.c (batch_flag): New global.
4452 (captured_main): Remove 'batch'. Update.
4453
bbd2783e
KB
44542010-03-08 Kevin Buettner <kevinb@redhat.com>
4455
4456 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4457 and Kevin Buettner:
4458
4459 * remote-mips.c (rockhopper_ops): New target_ops struct.
4460 (MON_ROCKHOPPER): New mips_monitor_type.
4461 (read_hex_value): New function.
4462 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 4463 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
4464 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4465 (rockhopper_open): New function.
4466 (mips_wait): Read the PC, FP and SP fields as strings. Use
4467 read_hex_value to parse them and mips_set_register to commit them.
4468 (mips_set_register): New function.
4469 (mips_fetch_registers): Do not cast register value to "unsigned"
4470 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4471 (mips_store_registers): Use a 'T' packet to set registers when
4472 using MON_ROCKHOPPER.
4473 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4474 and expect the total to be printed before the entry address.
4475 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4476
566f3d17
KB
44772010-03-08 Kevin Buettner <kevinb@redhat.com>
4478
4479 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4480 Change return value to int. Store value fetched in location
4481 addressed by `val'. Use function's return value as success
4482 or failure indicator. Adjust all callers.
4483
9c8ee2ab 44842010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
4485
4486 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4487
7155de5a
HZ
44882010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4489 Hui Zhu <teawater@gmail.com>
4490
4491 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4492 tmp_to_stopped_data_address.
4493 (record_open): Reset tmp_to_stopped_by_watchpoint and
4494 tmp_to_stopped_data_address.
4495 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4496 to_stopped_data_address.
4497
580879fc
HZ
44982010-03-08 Hui Zhu <teawater@gmail.com>
4499
4500 * i386-tdep.c (i386_process_record): Initialize regnum.
4501
b0fcb67f
JK
45022010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4503
4504 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4505 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4506
08597104
JB
45072010-03-08 Joel Brobecker <brobecker@adacore.com>
4508
4509 Memory error when reading wrong core file.
4510 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4511 errors while reading the inferior memory, and return zero if
4512 an exception was raised.
4513
425b824a
MS
45142010-03-07 Michael Snyder <msnyder@vmware.com>
4515
ec6dbf37
MS
4516 * record.c (record_restore): Rename tmpu8 to rectype.
4517
648d0c8b
MS
4518 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4519 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4520
4521 (i386_record_push): Rename local tmpulongest to addr.
4522
4523 (i386_process_record): Rename local tmpulongest to addr.
4524
4525 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4526 addr64.
955db0c0
MS
4527
4528 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 4529
10760264
JB
45302010-03-07 Joel Brobecker <brobecker@adacore.com>
4531
4532 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 4533 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 4534
b3c613f2
CF
45352010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4536
4537 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4538 block. Define helper macros to reduce ifdefs in code.
4539 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4540 size. Call unadorned GetModuleFileNameEx rather than
4541 GetModuleFileNameEx*.
4542 (windows_make_so): Use __PMAX to denote maximum buffer size and
4543 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4544 appropriate.
4545 (get_image_name): Use __PMAX to denote maximum buffer size.
4546 (handle_load_dll): Likewise.
4547 (windows_pid_to_exec_file): Likewise.
4548 (windows_create_inferior): Add many accommodations for older Cygwin and
4549 non-Cygwin.
4550 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4551 __USEWIDE conditional.
4552 (bad_GetModuleFileNameExA): Likewise.
4553 (_initialize_loadable): Just use real function names without the dyn_
4554 part since they are defined earlier.
4555
f870a310
TT
45562010-03-05 Corinna Vinschen <vinschen@redhat.com>
4557 Tom Tromey <tromey@redhat.com>
4558
4559 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4560 (parse_escape): Likewise.
4561 * python/py-utils.c (unicode_to_target_string): Update.
4562 (unicode_to_target_python_string): Update.
4563 (target_string_to_unicode): Update.
4564 * printcmd.c (printf_command): Update.
4565 * p-exp.y (yylex): Update.
4566 * objc-exp.y (yylex): Update.
4567 * mi/mi-parse.c: Include charset.h.
4568 (mi_parse_escape): New function.
4569 (mi_parse_argv): Use it.
4570 * jv-exp.y (yylex): Update.
4571 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4572 function.
4573 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4574 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4575 * gdbarch.c: Rebuild.
4576 * gdbarch.h: Rebuild.
4577 * defs.h (parse_escape): Update.
4578 * cli/cli-setshow.c: Include arch-utils.h.
4579 (do_setshow_command): Update.
4580 * cli/cli-cmds.c (echo_command): Update.
4581 * charset.h (target_charset, target_wide_charset): Update.
4582 * charset.c: Include arch-utils.h.
4583 (target_charset_name): Default to "auto".
4584 (target_wide_charset_name): Likewise.
4585 (show_target_charset_name): Handle "auto".
4586 (show_target_wide_charset_name): Likewise.
4587 (be_le_arch): New global.
4588 (set_be_le_names): Add 'gdbarch' argument.
4589 (validate): Likewise. Don't call set_be_le_names.
4590 (set_charset_sfunc, set_host_charset_sfunc)
4591 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4592 Update.
4593 (target_charset): Add 'gdbarch' argument.
4594 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4595 (auto_target_charset_name): New global.
4596 (default_auto_charset, default_auto_wide_charset): New functions.
4597 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4598 for target charsets. Copy result of nl_langinfo. Use GetACP if
4599 USE_WIN32API.
4600 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4601 remove 'byte_order' argument. Update.
4602 (classify_type): Likewise.
4603 (c_emit_char): Update.
4604 (c_printchar): Update.
4605 (c_printstr): Update.
4606 (c_get_string): Update.
4607 (evaluate_subexp_c): Update.
4608 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4609 Declare.
4610 * python/python.c (gdbpy_target_charset): New function.
4611 (gdbpy_target_wide_charset): Likewise.
4612 (GdbMethods): Update.
4613 * NEWS: Update.
4614
4e7386b0
UW
46152010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4616
4617 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4618 off high address bits.
4619
aab48ede
UW
46202010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4621
4622 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4623 address as UnsignedLongLong, not LongLong.
4624
8eeafb51 46252010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 4626 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
4627
4628 * remote-mips.c (gdbthread.h): Include.
4629 (remote_mips_ptid): Declare.
4630 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4631 (common_open): Set inferior_ptid, add it as an inferior, and
4632 as a thread too. Delete FIXME comment regarding start_remote().
4633 (mips_close): Invoke generic_mourn_inferior().
4634 (mips_kill): Make sure that target_mourn_inferior is invoked.
4635 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4636 it's now invoked from mips_close().
4637 (mips_load): Don't null out inferior_ptid. Don't call
4638 clear_symtab_users().
4639 (mips_thread_alive, mips_pid_to_str): New functions.
4640 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4641 to_thread_alive and to_pid_to_str operations.
4642
ae411497
TT
46432010-03-04 Tom Tromey <tromey@redhat.com>
4644
4645 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4646 in DWARF 3 and later.
4647 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4648
0e0b460e
KS
46492010-03-04 Keith Seitz <keiths@redhat.com>
4650
4651 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4652 If the filename portion of the linespec was quoted, recheck the
4653 remainder for additional quoting.
4654 (locate_first_half): Skip over completer chars, too.
4655
1b93ff13
TT
46562010-03-04 Tom Tromey <tromey@redhat.com>
4657
4658 * printcmd.c (printf_command): Pass dummy argument to
4659 printf_filtered.
4660
fc36e839
DE
46612010-03-04 Doug Evans <dje@google.com>
4662
111f853c
DE
4663 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4664 unwound_fp.
4665
fc36e839
DE
4666 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4667
c7437ca6
PA
46682010-03-04 Pedro Alves <pedro@codesourcery.com>
4669
4670 * breakpoint.c (update_watchpoint): Create a sentinel location if
4671 the software watchpoint isn't watching any memory.
4672 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4673
58dadb1b
PA
46742010-03-04 Pedro Alves <pedro@codesourcery.com>
4675
4676 * utils.c (fputs_maybe_filtered): Check if there's already a top
4677 level interpreter before dereferencing it. If there isn't one,
4678 don't paginate either.
4679
50e98be4
DJ
46802010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4681
4682 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4683 the state right when single stepping.
4684 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4685 Get the next PC along with the instruction state.
4686 (thumb_get_next_pc): Remove.
4687 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4688
2e3ceee9
HZ
46892010-03-04 Hui Zhu <teawater@gmail.com>
4690
4691 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4692
390a8aca
PA
46932010-03-03 Pedro Alves <pedro@codesourcery.com>
4694
4695 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4696 top level interpreter is MI.
4697
9355b391
SS
46982010-03-03 Stan Shebs <stan@codesourcery.com>
4699
4700 * remote.c (remote_download_tracepoint): Iterate over locations.
4701 * tracepoint.c (validate_actionline): Ditto.
4702 (encode_actions): Add location argument.
4703 (trace_dump_command): Check all locations to see if stepping
4704 frame.
390a8aca 4705
8685c86f
L
47062010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4707 Eli Zaretskii <eliz@gnu.org>
4708
4709 * NEWS: Add X86 general purpose registers section.
4710
e8f781e2
TT
47112010-03-03 Tom Tromey <tromey@redhat.com>
4712
4713 PR mi/11098:
4714 * varobj.c (install_new_value): Handle case where new print_value
4715 is NULL.
4716
a0e0ef55
TT
47172010-03-03 Dainis Jonitis <jonitis@gmail.com>
4718
4719 PR gdb/11345:
4720 * printcmd.c (printf_command): Print end of format string using
4721 printf_filtered.
4722
a58d7472
TT
47232010-03-02 Tom Tromey <tromey@redhat.com>
4724
4725 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4726 * defs.h (read_command_lines_1): Add missing 'void'.
4727 * cli/cli-script.c (recurse_read_control_structure): Add missing
4728 'void'.
4729 (read_next_line): Likewise.
4730 (read_command_lines_1): Likewise.
4731
ce50d78b
UW
47322010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4733
4734 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4735 store backchain as part of prologue.
4736
7e9af34a
DJ
47372010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4738
4739 * progspace.c (update_address_spaces): Update inferior address spaces
4740 also.
4741
01637564
DE
47422010-03-02 Doug Evans <dje@google.com>
4743
4744 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4745 lowpc,highpc args to addrmap_set_empty.
4746
1ba53b71
L
47472010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4748
4749 * amd64-tdep.c (amd64_byte_names): New.
4750 (amd64_word_names): Likewise.
4751 (amd64_dword_names): Likewise.
4752 (amd64_pseudo_register_name): Likewise.
4753 (amd64_pseudo_register_read): Likewise.
4754 (amd64_pseudo_register_write): Likewise.
4755 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4756 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4757 set_gdbarch_pseudo_register_write and
4758 set_tdesc_pseudo_register_name. Don't call
4759 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4760
4761 * i386-tdep.c (i386_num_mmx_regs): Removed.
4762 (i386_num_pseudo_regs): Likewise.
4763 (i386_byte_names): New.
4764 (i386_word_names): Likewise.
4765 (i386_byte_regnum_p): Likewise.
4766 (i386_word_regnum_p): Likewise.
4767 (i386_mmx_regnum_p): Updated.
4768 (i386_pseudo_register_name): Make it global. Handle byte and
4769 word pseudo-registers.
4770 (i386_pseudo_register_read): Likewise.
4771 (i386_pseudo_register_write): Likewise.
4772 (i386_pseudo_register_type): Handle byte, word and dword
4773 pseudo-registers
4774 (i386_register_reggroup_p): Don't include pseudo
4775 registers, except for MXX, in any register groups. Don't
4776 include pseudo byte, word, dword registers in general_reggroup.
4777 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4778 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
4779 pseudo-registers after word pseudo-registers. Call
4780 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4781
4782 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4783 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4784 eax_regnum.
4785 (i386_byte_regnum_p): New.
4786 (i386_word_regnum_p): Likewise.
4787 (i386_dword_regnum_p): Likewise.
4788 (i386_pseudo_register_name): Likewise.
4789 (i386_pseudo_register_read): Likewise.
4790 (i386_pseudo_register_write): Likewise.
4791
a6f5ef51
L
47922010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4793
4794 * target-descriptions.c (tdesc_type): Remove
4795 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4796 (tdesc_predefined_types): Likewise.
4797 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
4798 if flag name is empty.
4799 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4800
4801 * features/i386/32bit-core.xml: Define i386_eflags.
4802 * features/i386/64bit-core.xml: Likewise.
4803
4804 * features/i386/32bit-sse.xml: Define i386_mxcsr.
4805 * features/i386/64bit-sse.xml: Likewise.
4806
4807 * features/i386/amd64-linux.c: Regenerated.
4808 * features/i386/amd64.c: Likewise.
4809 * features/i386/i386-linux.c: Likewise.
4810 * features/i386/i386.c: Likewise.
4811
f5dff777
DJ
48122010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
4813
4814 * gdbtypes.c (append_composite_type_field_raw): New.
4815 (append_composite_type_field_aligned): Use the new function.
4816 * gdbtypes.h (append_composite_type_field_raw): Declare.
4817 * target-descriptions.c (struct tdesc_type_field): Add start and end.
4818 (struct tdesc_type_flag): New type.
4819 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4820 kind. Add size to u.u. Add u.f for flags.
4821 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4822 (tdesc_free_type): Likewise.
4823 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4824 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4825 (tdesc_add_bitfield, tdesc_add_flag): New.
4826 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4827 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4828 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4829 current_type. Add current_type_size and current_type_is_flags.
4830 (tdesc_start_union): Clear the new fields.
4831 (tdesc_start_struct, tdesc_start_flags): New.
4832 (tdesc_start_field): Handle struct fields, including bitfields.
4833 (field_attributes): Make type optional. Add start and end.
4834 (union_children): Rename to struct_union_children.
4835 (union_attributes): Rename to struct_union_attributes. Add optional
4836 size.
4837 (flags_attributes): New.
4838 (feature_children): Add struct and flags.
4839 * features/gdb-target.dtd: Add flags and struct to features.
4840 Make field type optional. Add field start and end.
4841
90884b2b
L
48422010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4843
4844 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4845 (amd64_linux_read_description): Likewise.
4846 (_initialize_amd64_linux_nat): Set to_read_description to
4847 amd64_linux_read_description.
4848
4849 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4850 (amd64_linux_register_name): Removed.
4851 (amd64_linux_register_type): Likewise.
4852 (amd64_linux_core_read_description): New.
4853 (amd64_linux_init_abi): Set target description to
4854 tdesc_amd64_linux if needed. Support orig_rax in target
4855 description. Don't call set_gdbarch_register_name nor
4856 set_gdbarch_register_type. Call
4857 set_gdbarch_core_read_description.
4858 (_initialize_amd64_linux_tdep): Call
4859 initialize_tdesc_amd64_linux.
4860
4861 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4862
4863 * amd64-tdep.c: Include "features/i386/amd64.c".
4864 (amd64_register_names): Removed.
4865 (amd64_register_name): Likewise.
4866 (amd64_register_type): Likewise.
4867 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 4868 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
4869 set_gdbarch_register_name nor set_gdbarch_register_type.
4870 (_initialize_amd64_tdep): New.
4871
4872 * i386-linux-nat.c (i386_linux_read_description): New.
4873 (_initialize_i386_linux_nat): Set to_read_description to
4874 i386_linux_read_description.
4875
4876 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4877 (i386_linux_register_name): Removed.
4878 (i386_linux_core_read_description): New.
4879 (i386_linux_read_description): Likewise.
4880 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4881 Set target description to tdesc_i386_linux if needed. Support
4882 orig_eax. Set register_reggroup_p. Call
4883 set_gdbarch_core_read_description.
4884 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4885
4886 * i386-linux-tdep.h (tdesc_i386_linux): New.
4887
4888 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4889 with I387_NUM_REGS.
4890
4891 * i386-tdep.c: Include "features/i386/i386.c".
4892 (i386_register_names): Make it const.
4893 (i386_mmx_names): Likewise.
4894 (i386_num_register_names): Removed.
4895 (i386_register_name): Likewise.
4896 (i386_eflags_type): Likewise.
4897 (i386_mxcsr_type): Likewise.
4898 (i386_sse_type): Likewise.
4899 (i386_register_type): Likewise.
4900 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4901 (i386_pseudo_register_name): New.
4902 (i386_pseudo_register_type): Likewise.
4903 (i386_mmx_type): Make it static.
4904 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
4905 I387_NUM_REGS. Set num_core_regs and register_names. Don't
4906 call set_gdbarch_register_name nor set_gdbarch_register_type.
4907 Set register_reggroup_p. Set target description to tdesc_i386
4908 if needed. Call set_tdesc_pseudo_register_type,
4909 set_tdesc_pseudo_register_name and tdesc_use_registers.
4910 (_initialize_i386_tdep): Call initialize_tdesc_i386.
4911 initialize_tdesc_x86_64.
4912
4913 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4914 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
4915 register_names, tdesc and register_reggroup_p.
4916 (I386_NUM_FREGS): Removed.
4917 (i386_eflags_type): Likewise.
4918 (i386_mxcsr_type): Likewise.
4919 (i386_mmx_type): Likewise.
4920 (i386_sse_type): Likewise.
4921 (i386_register_name): Likewise.
4922 (i386_regnum): Add I386_MXCSR_REGNUM.
4923 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4924
4925 * i387-tdep.h (I387_NUM_REGS): New.
4926
4927 * regformats/i386/i386-linux.dat: Generated.
4928 * regformats/i386/i386.dat: Likewise.
4929 * regformats/i386/amd64-linux.dat: Likewise.
4930 * regformats/i386/amd64.dat: Likewise.
4931
4932 * regformats/reg-i386-linux.dat: Removed.
4933 * regformats/reg-i386.dat: Likewise.
4934 * regformats/reg-x86-64-linux.dat: Likewise.
4935 * regformats/reg-x86-64.dat: Likewise.
4936
d0d0ab16
CV
49372010-03-01 Corinna Vinschen <vinschen@redhat.com>
4938
4939 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4940 cygwin_conv_path API rather than the deprecated
4941 cygwin_conv_to_full_posix_path.
4942 * windows-nat.c:
4943 (GetModuleFileNameExA): Undefine for Cygwin.
4944 (GetModuleFileNameExW): Define for Cygwin.
4945 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4946 Call GetModuleFileNameExW and convert path to POSIX using
4947 cygwin_conv_path.
4948 (windows_make_so): Always define p. Drop unused variable m.
4949 Don't use Win32 functions to check file existance, rather use
4950 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
4951 Use canonicalize_file_name to get full path.
4952 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4953 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
4954 use correct target buffer size in call to WideCharToMultiByte.
4955 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4956 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4957 (windows_create_inferior): Convert all paths and arguments to wchar_t
4958 and use CreateProcessW on Cygwin.
4959 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4960 (bad_GetModuleFileNameExA): Undefine for Cygwin.
4961 (bad_GetModuleFileNameExW): Define for Cygwin.
4962 (_initialize_loadable): Load GetModuleFileNameExW into
4963 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
4964
dc00d89f
PM
49652010-02-28 Phil Muldoon <pmuldoon@redhat.com>
4966
4967 PR python/11036
4968 * python/py-frame.c (frapy_read_var): Add block argument and logic
4969 to cope with user provided blocks.
4970
0e095b7e
JK
49712010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4974 New comment.
4975
2f9e05b4
CV
49762010-02-28 Corinna Vinschen <vinschen@redhat.com>
4977
4978 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4979 (COMMON_OBS): ... to here since it's used unconditionally.
4980 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4981 (SFILES): To here.
4982
eb195664
DD
49832010-02-26 David Daney <ddaney@caviumnetworks.com>
4984
4985 * mips-linux-tdep.c: Update struct sigframe comments.
4986 (SIGFRAME_CODE_OFFSET): Delete macro.
4987 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4988 this_frame's sp.
4989 (mips_linux_n32n64_sigframe_init): Same.
4990
97b0f3e2
KB
49912010-02-26 Kevin Buettner <kevinb@redhat.com>
4992
4993 * remote-mips.c (mips_load): Don't use pseudo-register when
4994 invalidating regcache.
4995
4069ebbe
DJ
49962010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4997
4998 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4999
05071a4d
PA
50002010-02-26 Pedro Alves <pedro@codesourcery.com>
5001
5002 * NEWS: Add "New targets" section, and mention ARM Symbian
5003 support.
5004
6063c216
UW
50052010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5006
5007 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5008 add ADDR_SIZE member.
5009 (allocate_piece_closure): Update.
5010 (copy_pieced_value_closure): Likewise.
5011 (dwarf2_evaluate_loc_desc): Likewise.
5012 (read_pieced_value): Use DWARF address size instead of
5013 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5014
5107b149 50152010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 5016 Tom Tromey <tromey@redhat.com>
5107b149
PM
5017
5018 * python/py-type.c (typy_lookup_typename): Add in block argument.
5019 If provided restrict lookup to specified blocks.
5020 (gdbpy_lookup_type): Likewise.
5021 (typy_lookup_type): Likewise.
5022
78664fa3 50232010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 5024
78664fa3
PA
5025 Symbian config
5026
5027 gdb/
5028 * arm-symbian-tdep.c: New.
5029 * configure.tgt (arm*-*-symbianelf*): New target.
5030 (*-*-symbianelf*): New OS.
5031 * osabi.c (gdb_osabi_names): Add Symbian.
5032 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5033 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5034 (ALLDEPFILES): Add arm-symbian-tdep.c.
5035
eb73e134
DJ
50362010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5037
5038 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5039
46ef47e5
PA
50402010-02-24 Pedro Alves <pedro@codesourcery.com>
5041
5042 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5043
f3e9a817 50442010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 5045 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
5046 Thiago Jung Bauermann <bauerman@br.ibm.com>
5047
5048 * python/python.c (_initialize_python): Call
5049 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5050 gdbpy_initialize_blocks.
5051 * python/python-internal.h: Declare struct symbol, block and
5052 symtab_and_line. Declare block_object_type and
5053 symbol_object_type
5054 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5055 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5056 (symbol_to_symbol_object, block_to_block_object)
5057 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5058 (gdbpy_initialize_blocks ): Declare.
5059 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5060 (frapy_select): Add methods.
5061 (frapy_read_var): Add symbol branch.
5062 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5063 py-block.
5064 (SUBDIR_PYTHON_SRCS): Likewise.
5065 (py-symbol.o): New rule.
5066 (py-symtab.o): Likewise.
5067 (py-block.o): Likewise.
5068 * python/py-symbol.c: New file.
5069 * python/py-symtab.c: Likewise.
5070 * python/py-block.c: Likewise.
5071
24291992
PA
50722010-02-24 Pedro Alves <pedro@codesourcery.com>
5073
5074 PR gdb/11321
5075
5076 * inferior.h (prepare_for_detach): Declare.
5077 (struct inferior) <detaching>: New field.
5078 * infrun.c (prepare_for_detach): New.
5079 (handle_inferior_event) <random signal>: Don't stop if detaching.
5080 * target.c (target_detach): Call prepare_for_detach.
5081
fc1cf338
PA
50822010-02-24 Pedro Alves <pedro@codesourcery.com>
5083
5084 Per-process displaced stepping queue.
5085
5086 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5087 (displaced_step_gdbarch, displaced_step_closure,
5088 (displaced_step_original, displaced_step_copy): Move globals to
5089 this...
5090 (struct displaced_step_inferior_state): ... new structure.
5091 (displaced_step_inferior_states): New global.
5092 (get_displaced_stepping_state, add_displaced_stepping_state)
5093 (remove_displaced_stepping_state, infrun_inferior_exit): New
5094 functions.
5095 (displaced_step_clear): Add displaced_step_inferior_state
5096 parameter, and adjust to handle it.
5097 (displaced_step_clear_cleanup): Parameter is now a
5098 displaced_step_inferior_state. Adjust.
5099 (displaced_step_prepare): Adjust.
5100 (displaced_step_fixup, displaced_step_fixup)
5101 (infrun_thread_ptid_changed, resume): Adjust.
5102 (init_wait_for_inferior): Don't call displaced_step_clear.
5103 (infrun_thread_stop_requested): Rewrite.
5104 (_initialize_infrun): Install infrun_inferior_exit as
5105 inferior_exit observer.
5106
0723dbf5
PA
51072010-02-24 Pedro Alves <pedro@codesourcery.com>
5108
5109 * inferior.h (ptid_match): Declare.
5110 * infrun.c (ptid_match): New.
5111 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5112 (handle_notification): Add debug output.
5113 * linux-nat.c (ptid_match): Delete.
5114
09de9781
DM
51152010-02-24 David S. Miller <davem@davemloft.net>
5116
5117 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5118 * syscalls/sparc-linux.xml: New.
5119 * syscalls/sparc64-linux.xml: New.
5120 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5121 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5122 (sparc32_linux_get_syscall_number): New function.
5123 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5124 syscall number fetcher.
5125 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5126 (sparc64_linux_get_syscall_number): New function.
5127 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5128 syscall number fetcher.
5129
a79b8f6e
VP
51302010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5131
5132 Multiexec MI
5133
5134 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5135 * inferior.c (add_inferior_silent): Notify inferior_added
5136 observer.
5137 (delete_inferior_1): Notify inferior_removed observer.
5138 (exit_inferior_1): Pass inferior, not pid, to observer.
5139 (inferior_appeared): Likewise.
5140 (add_inferior_with_spaces): New.
5141 (add_inferior_command): Use the above.
5142 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5143 Declare.
5144
5145 * inflow.c (inflow_inferior_exit): Likewise.
5146 * jit.c (jit_inferior_exit_hook): Likewise.
5147
5148 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5149 remove-inferior.
5150 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5151 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5152 (report_initial_inferior): New.
5153 (mi_inferior_removed): Register the above. Make sure
5154 inferior_added observer is called on the first inferior.
5155 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5156 inferior number, not pid.
5157 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5158 affected.
5159 * mi/mi-main.c (current_context): New.
5160 (proceed_thread_callback): Use typed closure.
5161 Proceed everything if pid is 0. Most implementation split into
5162 (proceed_thread): ... this.
5163 (run_one_inferior): New.
5164 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5165 Adjust for multiexec behaviour.
5166 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5167 (mi_cmd_execute): Handle the 'thread-group' option here.
5168 Do some extra checks.
5169 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5170 options.
5171 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5172
115d30f9
VP
51732010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5174
5175 Make -exec-run a proper MI commands.
5176
5177 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5178 * mi/mi-cmds.c (mi_cmds): Adjust.
5179 * mi/mi-main.c (mi_cmd_exec_run): New.
5180
06cd862c
PA
51812010-02-24 Pedro Alves <pedro@codesourcery.com>
5182 Stan Shebs <stan@codesourcery.com>
5183
5184 * tracepoint.h (set_traceframe_number)
5185 (cleanup_restore_current_traceframe): Declare.
5186 * tracepoint.c (set_traceframe_number): New.
5187 (struct current_traceframe_cleanup): New.
5188 (do_restore_current_traceframe_cleanup)
5189 (restore_current_traceframe_cleanup_dtor)
5190 (make_cleanup_restore_current_traceframe): New.
5191 * infrun.c: Include tracepoint.h.
5192 (fetch_inferior_event): Switch out and in of tfind mode.
5193
ab92d69b
PA
51942010-02-24 Pedro Alves <pedro@codesourcery.com>
5195
5196 * breakpoint.c (breakpoint_init_inferior): Also delete
5197 bp_shlib_event breakpoints.
5198 * solib-frv.c (enable_break): Remove call to
5199 remove_solib_event_breakpoints.
5200 * solib-svr4.c (enable_break): Ditto.
5201 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5202 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5203 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5204 * solib-spu.c (spu_enable_break): Ditto.
5205
e707a91d
PA
52062010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5207
5208 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5209
cfce2ea2
PA
52102010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5211
5212 * varobj.c (varobj_update): Avoid non-constants in initializers.
5213
05566b3b
TT
52142010-02-23 Tom Tromey <tromey@redhat.com>
5215
5216 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5217 handle big-endian values.
5218 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5219
85d721b8
PA
52202010-02-22 Pedro Alves <pedro@codesourcery.com>
5221
5222 PR9605
5223
5224 gdb/
5225 * breakpoint.c (insert_bp_location): If inserting the read
5226 watchpoint failed, fallback to an access watchpoint.
5227 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5228 if the value changed, if not watching the same memory for writes.
5229 (watchpoint_locations_match): Add comment.
5230 (update_global_location_list): Copy the location's watchpoint type.
5231 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5232 handle read watchpoints here.
5233 (i386_insert_watchpoint): Read watchpoints aren't supported.
5234 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5235 packets.
5236 * target.h (target_insert_watchpoint): Update description.
5237
48ea67a7
TT
52382010-02-19 Tom Tromey <tromey@redhat.com>
5239
5240 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5241 * m2-typeprint.c (m2_print_type): Update.
5242 * gdbtypes.c (recursive_dump_type): Update.
5243 (copy_type_recursive): Update.
5244 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5245 (c_type_print_base): Update.
5246 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5247 Remove.
5248 (struct cplus_struct_type) <ntemplate_args>: Remove.
5249 <struct template_arg>: Remove.
5250 <is_dynamic>: Move earlier.
5251 (TYPE_TEMPLATE_ARGS): Remove.
5252 (TYPE_NTEMPLATE_ARGS): Remove.
5253 (TYPE_TEMPLATE_ARG): Remove.
5254
48e32051
TT
52552010-02-19 Tom Tromey <tromey@redhat.com>
5256
5257 PR c++/8693, PR c++/9496:
5258 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5259 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5260 write_dollar_variable. Don't try to classify NAME tokens.
5261 (token_and_value): New type.
5262 (token_fifo, popping, name_obstack): New globals.
5263 (classify_name): New function.
5264 (classify_inner_name): Likewise.
5265 (yylex): Likewise.
5266 (VARIABLE): Now has type sval.
5267 (exp : VARIABLE): Call write_dollar_variable.
5268 (qualified_name): Use TYPENAME, not typebase. Add production for
5269 multiple "::" instances.
5270 (variable): Use name_not_typename.
5271 (qualified_type): Remove.
5272 (typebase): Update.
5273
672d9c23
JK
52742010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5275
5276 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5277 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5278 found by bfd_get_section_by_name.
5279 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5280
bfbf3774
JB
52812010-02-19 Joel Brobecker <brobecker@adacore.com>
5282
5283 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5284 7.0 section" into "Changes in 7.1".
5285
6756b09b 52862010-02-19 Joel Brobecker <brobecker@adacore.com>
5287
5288 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5289 * version.in: Bump version to 7.1.50.20100219-cvs.
5290
202b96c1
PA
52912010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5292
5293 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5294 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5295
de2e5182
TT
52962010-02-17 Tom Tromey <tromey@redhat.com>
5297
5298 * NEWS: Add Python API Improvements section.
5299
7280022e
DJ
53002010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5301
5302 * NEWS: Correct typo.
5303
6f451e5e
TT
53042010-02-17 Tom Tromey <tromey@redhat.com>
5305
5306 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5307
012836ea
JK
53082010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5309
5310 * symfile.c (build_section_addr_info_from_objfile): Include sections
5311 only if they are SEC_ALLOC or SEC_LOAD.
5312
d182d057
L
53132010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5314
5315 PR shlibs/11293
5316 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5317 of ULONGEST for address size.
5318
4eef138c
TT
53192010-02-17 Tom Tromey <tromey@redhat.com>
5320
5321 * NEWS: Add C++ improvements section.
5322
548a926a
UW
53232010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5324
5325 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5326 PyThreadState_Swap): Avoid "statement with no effect" warning.
5327
ad3a0e5b
JK
53282010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5329
5330 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5331 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5332
243e2c5d 53332010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 5334 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
5335
5336 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5337 gdb_assert. Fix info->size for SIG prologue.
5338
275f2e57
DJ
53392010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5340
5341 * infcmd.c (show_inferior_tty_command): Check for NULL.
5342 Correct output message.
5343
791dfb64
DJ
53442010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5345
5346 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5347 FUNCTION contains parentheses. Improve removal of a trailing
5348 single quote.
5349
14d1346b
DJ
53502010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5351
5352 * gcore.c (do_bfd_delete_cleanup): New function.
5353 (gcore_command): Use it. Discard the cleanup after success.
5354 (gcore_copy_callback): Delete dead code.
5355
e76ab67f
DJ
53562010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5357
5358 * symfile.c (addr_info_make_relative): Always use
5359 find_lowest_section.
5360
71dee663
SW
53612010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5362
5363 * NEWS: Added entry for namespace fixes.
5364
a9854bd5
TT
53652010-02-15 Tom Tromey <tromey@redhat.com>
5366
5367 * dwarf2read.c (guess_structure_name): Allocate name on the
5368 objfile obstack.
5369
fd9e29b5
TT
53702010-02-15 Tom Tromey <tromey@redhat.com>
5371
5372 * c-typeprint.c (c_type_print_base): Reverse order of test.
5373
4e1fc9c9
JK
53742010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5375
5376 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5377 initialize it from ELF BFD. Extend the prelink condition by it.
5378
74164c56
JK
53792010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5380
5381 * defs.h (parse_pid_to_attach): New.
5382 * utils.c (parse_pid_to_attach): New.
5383 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5384 * gnu-nat.c (gnu_attach): Likewise.
5385 * nto-procfs.c (procfs_attach): Likewise.
5386 * procfs.c (procfs_attach): Likewise.
5387 * windows-nat.c (windows_attach): Likewise.
5388 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5389 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5390 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5391 check.
5392
bf6adea8
MM
53932010-02-14 Masaki Muranaka <monaka@monami-software.com>
5394
5395 * MAINTAINERS: Add myself for write after approval privileges.
5396
28f34a8f
JK
53972010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5398
5399 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5400 block.
5401
701ed6dc
JK
54022010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5403
5404 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5405 only if INFO_VERBOSE.
5406
e5829bee
MS
54072010-02-12 Tomas Holmberg <th@virtutech.com>
5408
5409 * mi/mi-main.c: Added the --reverse flag to the following MI
5410 commands: exec-continue, exec-finish, exec-next, exec-step,
5411 exec-next-instruction, exec-step-instruction. This is to
5412 support reverse execution over the MI interface to gdb.
5413
081dfbf7
PA
54142010-02-12 Pedro Alves <pedro@codesourcery.com>
5415
5416 * tracepoint.c (_initialize_tracepoint): Specify that the address
5417 range of `tfind outsize' is exclusive, and that the address range
5418 of `tfind range' is inclusive, in the commands' help strings.
5419
ecc13e53
JB
54202010-02-12 Joel Brobecker <brobecker@adacore.com>
5421
5422 Spurious "dll not found" error messages on x64-windows.
5423 * windows-nat.c: Add include of complaints.h.
5424 (handle_unload_dll): Change dll-not-found error into a complaint.
5425
15c3d785
PA
54262010-02-12 Pedro Alves <pedro@codesourcery.com>
5427
5428 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5429 bp_tracepoint and bp_fast_tracepoint, not
5430 bp_loc_software_breakpoint.
5431 (update_global_location_list): Tracepoints are never duplicates of
5432 anything.
5433
fd9b8c24
PA
54342010-02-12 Pedro Alves <pedro@codesourcery.com>
5435
5436 * breakpoint.c (break_command_really): Change return type to int.
5437 Return false if no breakpoint was created, true otherwise.
5438 (trace_command): Don't set the tracepoint count if no tracepoint
5439 was created.
5440 (ftrace_command): Ditto.
5441 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5442 created in the breakpoints table.
5443
5c0d192f
JK
54442010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5445 Ulrich Weigand <uweigand@de.ibm.com>
5446
5447 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5448
5d5b640e
PA
54492010-02-11 Pedro Alves <pedro@codesourcery.com>
5450
5451 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5452 the offset value isn't of integral type.
5453
e5a0a904
JK
54542010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5455
5456 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5457 New.
5458
be636754
PA
54592010-02-11 Pedro Alves <pedro@codesourcery.com>
5460
5461 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5462 non-subscriptable types.
5463 * valarith.c (binop_types_user_defined_p): New, abstracted out
5464 from ...
5465 (binop_user_defined_p): ... this.
5466 * value.h (binop_types_user_defined_p): Declare.
5467
10ef8d6a
PA
54682010-02-11 Pedro Alves <pedro@codesourcery.com>
5469
5470 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5471 Merge uploaded TSVs before merging uploaded tracepoints.
5472
b1028c8e
PA
54732010-02-11 Pedro Alves <pedro@codesourcery.com>
5474
5475 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5476
7a93fb82 54772010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 5478
7a93fb82
VP
5479 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5480 whitespace character after a dot in comment.
5481 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5482 Likewise.
5483 (list_args_or_locals): For the 'all' (that is
5484 -stack-list-variables) case, always output list of tuples.
5485 Output 'arg' field if variable is argument.
84d90c10 5486
92981e24
TT
54872010-02-10 Tom Tromey <tromey@redhat.com>
5488
5489 * parser-defs.h (parser_debug): Declare.
5490 * parse.c (_initialize_parse): Install "debug parser" set/show
5491 command.
5492 (parser_debug): New global.
5493 (show_parserdebug): New function.
5494 * c-exp.y (c_parse): Set yydebug.
5495
9fd3625f
L
54962010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5497
5498 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5499 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5500 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5501 i386_mxcsr.
5502 (tdesc_find_type): New.
5503 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5504 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5505
5506 * target-descriptions.h (tdesc_find_type): New.
5507
2fe842e5
MS
55082010-02-10 Michael Snyder <msnyder@vmware.com>
5509
5510 * gdb-gdb.py: Comment fix.
5511
f18b4cab
TG
55122010-02-09 Tristan Gingold <gingold@adacore.com>
5513
5514 * machoread.c (macho_symfile_relocate): New function.
5515 (macho_sym_fns): Use macho_symfile_relocate instead of
5516 default_symfile_relocate.
5517 (macho_oso_data): New type.
5518 (current_oso): New variable.
5519 (macho_add_oso_symfile): Do not compute section_addr_info, but
5520 instead set vma of sections.
5521 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5522 Set and clear current_oso.
5523
31dbc1c5
JB
55242010-02-09 Joel Brobecker <brobecker@adacore.com>
5525
5526 Wrong type description for tagged type parameter.
5527 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5528 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5529 reference to a tagged type.
5530
399f313b
TG
55312010-02-09 Tristan Gingold <gingold@adacore.com>
5532
5533 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5534 brothers of the parent.
5535
714f19d5
TT
55362010-02-08 Tom Tromey <tromey@redhat.com>
5537
5538 PR c++/8017:
5539 * value.h: Update.
5540 * valops.c (search_struct_field): Make 'name' const.
5541 (search_struct_method): Likewise.
5542 (find_method_list): Make 'method' const.
5543 (value_struct_elt): Make 'name' and 'err' const.
5544 (value_find_oload_method_list): Make 'method' const.
5545 (find_overload_match): Make 'name' const.
5546 * eval.c (evaluate_subexp_standard): New locals function,
5547 function_name.
5548 <OP_FUNCALL>: Handle OP_SCOPE specially.
5549
de0a0249
UW
55502010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5551
5552 * infrun.c (handle_inferior_event): Do not look up regcache
5553 for exited processes.
5554
8d95cc3b 55552010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
5556
5557 PR gdb/10728
5558 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 5559 warn if found, and assume length = 1.
83b10087 5560
99903ae3
CM
55612010-02-08 Chris Moller <cmoller@redhat.com>
5562
5563 PR gdb/9067
5564 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5565 cp_print_static_field) Fix use of obstacks.
8d95cc3b 5566
e3e9f5a2
PA
55672010-02-08 Pedro Alves <pedro@codesourcery.com>
5568
5569 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5570 resumed LWPs as resumed.
5571 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5572 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5573 of throwing an internal error. If an LWP of a process we're not
5574 waiting for reports a signal, don't force collecting a SIGSTOP,
5575 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5576 go through all LWPs cancelling breakpoints in non-stop mode.
5577 (resume_stopped_resumed_lwps): New.
5578 (linux_nat_wait): Use it.
5579
46763423
L
55802010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5581
5582 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5583 i386/amd64 and i386/amd64-linux.
5584 (i386/i386-expedite): New.
5585 (i386/i386-linux-expedite): Likewise.
5586 (i386/amd64-expedite):Likewise.
5587 (i386/amd64-linux-expedite): Likewise.
5588 ($(outdir)/i386/i386-linux.dat): Likewise.
5589 ($(outdir)/i386/amd64.dat): Likewise.
5590 ($(outdir)/i386/amd64-linux.dat): Likewise.
5591
5592 * features/i386/32bit-core.xml: New.
5593 * features/i386/32bit-linux.xml: Likewise.
5594 * features/i386/32bit-sse.xml: Likewise.
5595 * features/i386/64bit-core.xml: Likewise.
5596 * features/i386/64bit-linux.xml: Likewise.
5597 * features/i386/64bit-sse.xml: Likewise.
5598 * features/i386/i386-linux.xml: Likewise.
5599 * features/i386/i386.xml: Likewise.
5600 * features/i386/amd64-linux.xml: Likewise.
5601 * features/i386/amd64.xml: Likewise.
5602 * features/i386/i386-linux.c: Likewise.
5603 * features/i386/i386.c: Likewise.
5604 * features/i386/amd64-linux.c: Likewise.
5605 * features/i386/amd64.c: Likewise.
5606
82856980
SW
56072010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5608
5609 PR c++/7935:
5610 * cp-support.h: Added char* alias element to using_direct data
5611 struct.
5612 (cp_add_using): Added char* alias argument.
5613 (cp_add_using_directive): Ditto.
5614 * cp-namespace.c: Updated with the above changes.
5615 (cp_lookup_symbol_imports): Check for aliases.
5616 * dwarf2read.c (read_import_statement): Figure out local alias
5617 for the import and pass it on to cp_add_using.
5618 (read_namespace): Pass alias argument to cp_add_using.
5619
d18b8b7a
HZ
56202010-02-05 Hui Zhu <teawater@gmail.com>
5621
5622 * defs.h (gdb_bfd_errmsg): New extern.
5623 * exec.c (exec_file_attach): Change bfd_errmsg to
5624 gdb_bfd_errmsg.
5625 * utils.c (AMBIGUOUS_MESS1): New macro.
5626 (AMBIGUOUS_MESS2): New macro.
5627 (gdb_bfd_errmsg): New function.
5628
48379de6
DE
56292010-02-04 Doug Evans <dje@google.com>
5630
5631 * solib-svr4.c (enable_break): Add comment.
5632
4ee73e90
AG
56332010-02-04 Anthony Green <green@moxielogic.com>
5634
5635 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5636 gracefully.
5637
1a334831
TT
56382010-02-04 Tom Tromey <tromey@redhat.com>
5639
5640 * valops.c (search_struct_field): Account for
5641 value_embedded_offset. Fix check for virtual base past the end of
5642 the object. Use value_copy when making a slice of the value.
5643
1180b2c8
L
56442010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5645
5646 PR tui/9622
5647 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5648 only if gdb_stdout is a tty.
5649
c3f08eb7
L
56502010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5651
5652 * target-descriptions.c: Include "osabi.h".
5653 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5654 OSABI.
5655
2d33f7b8
TG
56562010-02-04 Tristan Gingold <gingold@adacore.com>
5657
5658 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5659 (macho_symtab_read): Adjust calls to macho_add_oso.
5660 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5661 (macho_symfile_read): Adjust call to macho_oso_symfile.
5662 (macho_new_init): Move this function after declarations.
5663 (macho_symfile_init): Ditto.
5664 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5665 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5666
11334b82
VP
56672010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5668
5669 Include MI command in remotelog.
5670
5671 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5672
ff97be06
L
56732010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5674
5675 * remote.c (remote_state): Remove gdbarch.
5676 (init_remote_state): Don't set gdbarch.
5677 (remote_query_supported): Pass target_gdbarch instead of
5678 rs->gdbarch to gdbarch_qsupported.
5679
75cebea9
L
56802010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5681
5682 * gdbarch.sh: Add qsupported.
5683
5684 * gdbarch.c: Regenerated.
5685 * gdbarch.h: Likewise.
5686
5687 * remote.c (remote_state): Add gdbarch.
5688 (init_remote_state): Set gdbarch.
5689 (remote_query_supported): Support gdbarch_qsupported.
5690
c1dec97b
DJ
56912010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5692
5693 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5694 __FreeBSD_kernel_version.
5695
ac8035ab
TG
56962010-02-03 Tristan Gingold <gingold@adacore.com>
5697
5698 * symfile.h (struct sym_fns): Add sym_relocate field.
5699 (default_symfile_relocate): New prototype.
5700 (symfile_relocate_debug_section): First argument is now an objfile.
5701 * symfile.c (default_symfile_relocate): Rename from
5702 symfile_relocate_debug_section, first argument is now an objfile.
5703 (symfile_relocate_debug_section): New function.
5704 * coffread.c (coff_sym_fns): Set sym_relocate field.
5705 * somread.c (som_sym_fns): Ditto.
5706 * mipsread.c (ecoff_sym_fns): Ditto.
5707 * machoread.c (macho_sym_fns): Ditto.
5708 * elfread.c (elf_sym_fns): Ditto.
5709 * dwarf2read.c (dwarf2_read_section): Ditto.
5710 * xcoffread.c (xcoff_sym_fns): Ditto.
5711 * dbxread.c (aout_sym_fns): Ditto.
5712 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5713 (elfstab_build_psymtabs): Ditto.
5714
be52b756
L
57152010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5716
5717 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5718
9c3c02fd
TT
57192010-02-02 Tom Tromey <tromey@redhat.com>
5720
5721 * valops.c (value_cast_structs): Try downcasting using the RTTI
5722 type.
5723
f23f4c59
TT
57242010-02-02 Tom Tromey <tromey@redhat.com>
5725
5726 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5727 (gnuv2_baseclass_offset): Now static.
5728 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5729 * gnu-v2-abi.h: Remove.
5730
0cc2414c
TT
57312010-02-02 Tom Tromey <tromey@redhat.com>
5732
5733 * m2-typeprint.c (m2_record_fields): Don't use
5734 TYPE_DECLARED_TYPE.
5735 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5736 (struct main_type) <flag_declared_class>: New field.
5737 (struct cplus_struct_type) <declared_type>: Remove.
5738 <ntemplate_args>: Move earlier.
5739 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5740 (DECLARED_TYPE_TEMPLATE): Remove.
5741 (TYPE_DECLARED_TYPE): Remove.
5742 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5743 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5744 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5745 TYPE_DECLARED_TYPE.
5746
edf3d5f3
TT
57472010-02-02 Tom Tromey <tromey@redhat.com>
5748
5749 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5750 * valops.c (search_struct_field): Compute nbases after calling
5751 CHECK_TYPEDEF.
5752 (check_field): Call CHECK_TYPEDEF.
5753 * cp-valprint.c (cp_print_value): Pass correct address to
5754 baseclass_offset. Fix check for virtual base past the end of the
5755 object. Don't offset address passed to cp_print_value_fields or
5756 apply_val_pretty_printer.
5757 (cp_print_value_fields): Fix call to val_print.
5758 (cp_print_value_fields_rtti): New function.
5759 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5760 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5761 val_print.
5762 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5763 offset to address.
5764 * language.h (struct language_defn) <la_val_print>: Document.
5765 * c-lang.h (cp_print_value_fields_rtti): Declare.
5766
e4b7f41c
JK
57672010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 PR libc/11214:
5770 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5771 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5772 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5773
7618e12b
DJ
57742010-02-01 Michael Matz <matz@suse.de>
5775 Daniel Jacobowitz <dan@codesourcery.com>
5776
e4b7f41c 5777 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
5778 functions use a frame pointer.
5779
b381ea14
JK
57802010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5781
5782 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
5783 by a conditional setting DYN_ADDR. Use DYN_ADDR.
5784 * config/djgpp/fnchange.lst: Add translations for
5785 symbol-without-target_section.exp and symbol-without-target_section.c.
5786
0e05dfcb
DJ
57872010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5788
5789 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5790 (remote_breakpoint_for_pc): Correct invalid_p check.
5791 * gdbarch.c: Regenerated.
5792
f9d67f43
DJ
57932010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5794
5795 * arm-tdep.c (arm_find_mapping_symbol): New function, from
5796 arm_pc_is_thumb.
5797 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5798 (extend_buffer_earlier): New function.
5799 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5800 (arm_adjust_breakpoint_address): New function.
5801 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5802
177321bd
DJ
58032010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5804
5805 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5806 (arm_linux_thumb2_le_breakpoint): New constants.
5807 (arm_linux_init_abi): Set thumb2_breakpoint and
5808 thumb2_breakpoint_size.
5809 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5810 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
5811 Implement support for single stepping through IT blocks if
5812 a 32-bit Thumb breakpoint instruction is available.
5813 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5814 is available, use it when needed.
5815 (arm_remote_breakpoint_from_pc): New function.
5816 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5817 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5818 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
5819
a1dcb23a
DJ
58202010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5821
5822 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5823 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5824 * gdbarch.c, gdbarch.h: Regenerated.
5825 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5826 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5827 gdbarch_remote_breakpoint_from_pc.
5828
2b009048
DJ
58292010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5830
5831 * infrun.c (prepare_to_proceed): Handle other signals which might
5832 match a breakpoint.
5833 (handle_inferior_event): Move the check for unusual breakpoint
5834 signals earlier.
5835
e4e2711a
JB
58362010-01-29 Paul Hilfinger <hilfinger@adacore.com>
5837
5838 amd64 - function returning record with field straddling 2 registers.
5839 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5840 a record of length <= 16 in which a field straddles the two
5841 eightbytes.
5842
cba6fab5
JB
58432010-01-29 Joel Brobecker <brobecker@adacore.com>
5844
5845 Implement return values on amd64-windows.
5846 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5847 (amd64_windows_return_value): New function.
5848 (amd64_windows_init_abi): Call set_gdbarch_return_value with
5849 amd64_windows_return_value.
5850
3af6ddfe
JB
58512010-01-29 Joel Brobecker <brobecker@adacore.com>
5852
5853 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 5854 parameter registers.
3af6ddfe
JB
5855 * i386-tdep.h (struct gdbarch_tdep): Add new field
5856 integer_param_regs_saved_in_caller_frame.
5857 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5858 tdep->integer_param_regs_saved_in_caller_frame to 1.
5859 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5860 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5861
80d19a06
JB
58622010-01-29 Joel Brobecker <brobecker@adacore.com>
5863
5864 amd64-windows: memory args passed by pointer during function calls.
5865 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5866 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5867 where tdep->memory_args_by_pointer is non-zero.
5868 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5869 tdep->memory_args_by_pointer to 1.
5870
ba581dc1
JB
58712010-01-29 Joel Brobecker <brobecker@adacore.com>
5872
4966b6c2 5873 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
5874 * i386-tdep.h (enum amd64_reg_class): New, moved here from
5875 amd64-tdep.c.
5876 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5877 call_dummy_integer_regs, and classify.
5878 * amd64-tdep.h (amd64_classify): Add declaration.
5879 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5880 (amd64_reg_class): Delete, moved to i386-tdep.h.
5881 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
5882 Replace call to amd64_classify by call to tdep->classify.
5883 (amd64_push_arguments): Get the list of registers to use for
5884 passing integer parameters from the gdbarch tdep structure,
5885 rather than using a hardcoded one. Replace calls to amd64_classify
5886 by calls to tdep->classify.
5887 (amd64_push_dummy_call): Get the register number used for
5888 the "hidden" argument from tdep->call_dummy_integer_regs.
5889 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5890 and tdep->call_dummy_integer_regs. Set tdep->classify.
5891 * amd64-windows-tdep.c: Add include of gdbtypes.h.
5892 (amd64_windows_dummy_call_integer_regs): New static global.
5893 (amd64_windows_classify): New function.
5894 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5895 tdep->call_dummy_integer_regs and tdep->classify.
5896
d37346f0
DJ
58972010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5898
5899 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
5900 for the new regcache. All callers updated.
5901 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5902 (get_thread_arch_regcache): Do not set aspace here.
5903 * regcache.h (regcache_xmalloc): Update declaration.
5904
5905 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5906 regcache_xmalloc updated.
5907
7434dadd
JB
59082010-01-28 Joel Brobecker <brobecker@adacore.com>
5909
5910 Another -Wunused-function error in procfs.c (sparc-solaris)
5911 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
5912 Only define if SYS_syssgi is defined.
5913 (remove_dbx_link_breakpoint): Delete declaration. Move up.
5914 (dbx_link_addr, insert_dbx_link_bpt_in_file)
5915 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
5916 is itself defined.
5917
16d905e2
CF
59182010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
5919
5920 * windows-nat.c (windows_initialization_done): New variable.
5921 (get_windows_debug_event): Issue error when process dies before
5922 completely initializing.
5923 (do_initial_windows_stuff): Set flag to indicate when we are done with
5924 the initial steps of attaching to the child.
5925
cd55e50f
JK
59262010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 * symtab.h (struct symbol <symtab>): New comment on NULL values.
5929
99cc78aa
DE
59302010-01-27 Doug Evans <dje@google.com>
5931
4c7dcb84
DE
5932 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5933
99cc78aa
DE
5934 * breakpoint.c (bpstat_stop_status): Delete useless code.
5935
52334bf5
JK
59362010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5937
5938 * printcmd.c (display_uses_solib_p): Remove variable section. Access
5939 objfile via SYMBOL_SYMTAB.
5940
708ead4e
TT
59412010-01-26 Tom Tromey <tromey@redhat.com>
5942
5943 PR exp/7643:
5944 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5945 coerce_array on result.
5946
b14e635e
SW
59472010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5948
5949 * cp-namespace.c (cp_lookup_symbol_namespace): Added
5950 search_parent argument.
5951 (cp_add_using): Initialize 'searched' field.
5952 (reset_directive_searched): New function.
5953 * cp-support.h: Add 'searched' field to using_direct struct.
5954 (cp_lookup_symbol_imports): Ditto.
5955 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5956 Perform recursive search.
5957 Implement non parent search.
5958 * valops.c (value_maybe_namespace_elt): Updated.
5959
8540c487
SW
59602010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5961
5962 PR gdb/10929:
5963 * dwarf2read.c (read_lexical_block_scope): Create blocks for
5964 scopes which contain using directives even if they contain no
5965 declarations.
5966 * symtab.c (lookup_symbol_aux): Pass lowest level block to
5967 la_lookup_symbol_nonlocal.
5968 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5969 cp_lookup_symbol_namespace.
5970 (cp_lookup_symbol_namespace): Perform an import lookup at every
5971 block level.
5972 (cp_lookup_symbol_imports): New function.
5973 (cp_lookup_symbol_in_namespace): New function.
5974
421d5d99
TT
59752010-01-25 Tom Tromey <tromey@redhat.com>
5976
5977 PR gdb/11049:
5978 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5979 result.
5980
6bcc772d
RO
59812010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5982
5983 * configure.ac: Only use host_os part when disabling TUI on osf.
5984 Use test to check variables, prefix strings with x.
5985 * configure: Regenerate.
5986
5987 * solib-osf.c (osf_current_sos): Initialize tail.
5988
1c1238a5
TG
59892010-01-25 gingold <gingold@adacore.com>
5990
c8d5aac9
L
5991 * windows-nat.c (windows_continue): Use %x to print thread id.
5992 (get_windows_debug_event): Ditto.
1c1238a5 5993
0b92b5bb
TT
59942010-01-22 Tom Tromey <tromey@redhat.com>
5995
5996 PR symtab/11199:
5997 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5998 type and arguments. Use smash_to_methodptr_type.
5999 (read_structure_type): Call quirk_gcc_member_function_pointer
6000 later.
6001 * gdbtypes.h (smash_to_methodptr_type): Declare.
6002 * gdbtypes.c (smash_to_methodptr_type): New function.
6003 (lookup_methodptr_type): Use it.
6004
0d5392b8
TT
60052010-01-21 Tom Tromey <tromey@redhat.com>
6006
6007 PR symtab/11198:
6008 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6009 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6010 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6011 (glibc_skip_solib_resolver): Use
6012 lookup_minimal_symbol_and_objfile.
6013
e6d088ec
KT
60142010-01-21 Kai Tietz <kai.tietz@onevision.com>
6015
6016 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6017 WIN32 targets.
6018
b966cb8a
TT
60192010-01-20 Tom Tromey <tromey@redhat.com>
6020
6021 PR backtrace/10770:
6022 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6023 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6024 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6025 dwarf_stack_values, not CORE_ADDRs.
6026 (execute_stack_op): Change DW_OP_div and comparison operators to
6027 use signed operands.
6028
3f81c18a
VP
60292010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6030
6031 Per-inferior args and tty and environment.
6032
6033 * infcmd.c (inferior_args): Rename to ...
6034 (inferior_args_scratch): ... this.
6035 (inferior_io_terminal): Rename to ...
6036 (inferior_io_terminal_scratch): ... this.
6037 (inferior_argc, inferior_argv): Remove.
6038 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6039 inside current_inferior().
6040 (set_inferior_tty_command, show_inferior_tty_command): New.
6041 (get_inferior_args, set_inferior_args): Store inside
6042 current_inferior().
6043 (notice_args_set): Likewise and rename to...
6044 (set_args_command): ... this.
6045 (set_inferior_args_vector): Likewise.
6046 (notice_args_read): Rename to...
6047 (show_args_command): ...new.
6048 (tty_command): Remove.
6049 (run_command_1): Don't free old args, as they are freed by
6050 set_inferior_arg now.
6051 (run_no_args_command): Likewise.
6052 (inferior_environ): Remove.
6053 (run_command_1): Use environment of the current inferior.
6054 (environment_info, set_environment_command)
6055 (unset_environment_command, path_info, path_command): Likewise.
6056 (_initialize_infcmd): Adjust for function and variable renames.
6057 Do not init inferior_environ.
6058 * inferior.h (set_inferior_arg): Adjust prototype.
6059 (struct inferior): New fields args, argc, argv, terminal, environment.
6060 (inferior_environ): Remove declaration.
6061 * inferior.c (free_inferior): Free new fields.
6062 (add_inferior_silent): Initialize 'environment' field.
6063 * main.c (captured_main): Set arguments only after the initial
6064 inferior has been created. Set set_inferior_io_terminal,
6065 not tty_command.
6066 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6067 inferior.
6068 (_initialize_mi_cmd_env): Adjust for disappearance of global
6069 inferior_environ.
6070 * solib.c (solib_find): Use environment of the current inferior.
6071
d8b65138
JK
60722010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6075 HAVE_PYTHON.
6076 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6077
692465f1
JB
60782010-01-20 Joel Brobecker <brobecker@adacore.com>
6079
6080 Get rid of ada-lang.c:function_name_from_pc.
6081 * ada-lang.c: Add "stack.h" #include.
6082 (function_name_from_pc): Delete.
6083 (is_known_support_routine): Replace call to function_name_from_pc
6084 by call to find_frame_funname.
6085 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6086
95519e0e
TT
60872010-01-19 Tom Tromey <tromey@redhat.com>
6088
6089 PR c++/11026:
6090 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6091 objfile obstack.
6092
95c11dc7
TT
60932010-01-19 Tom Tromey <tromey@redhat.com>
6094
6095 * top.c (stop_sig, float_handler, do_nothing): Remove.
6096
a0f49112
JK
60972010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6098
6099 * breakpoint.c (watchpoint_check): Check the call
6100 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6101 Extend the comment.
8d95cc3b 6102 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
6103 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6104 watchpoint-cond-gone-stripped.c.
6105
ceeb3d5a
TT
61062010-01-19 Tom Tromey <tromey@redhat.com>
6107
6108 PR c++/8000:
6109 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6110 into parent scope, and enumerator into grandparent scope.
6111
2b71fc8e
JB
61122010-01-19 Joel Brobecker <brobecker@adacore.com>
6113
6114 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6115
03564ed9
JB
61162010-01-19 Joel Brobecker <brobecker@adacore.com>
6117
6118 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6119 i[34567]86-*-solaris2.1[0-9]*.
6120 * configure.tgt: Likewise.
6121
fb2e7cb4
JB
61222010-01-19 Joel Brobecker <brobecker@adacore.com>
6123
6124 * NEWS: Document the source command enhancement allowing it
6125 to load Python scripts. Document the "set/show script-extension"
6126 commands.
6127
1cb5e2a4
JB
61282010-01-19 Joel Brobecker <brobecker@adacore.com>
6129
6130 Add -Wunused-function to compile flags.
6131 * configure.ac: Add -Wunused-function to build_warnings.
6132 * configure: Regenerate.
6133
0ec6cd0c
JB
61342010-01-19 Joel Brobecker <brobecker@adacore.com>
6135
6136 "delete" ada-lex.c:input function, not used.
6137 * ada-lex.l: #define YY_NO_INPUT.
6138
b74845da
JB
61392010-01-19 Joel Brobecker <brobecker@adacore.com>
6140
6141 Delete free_named_symtabs and associated cleanup.
6142 * symfile.h (free_named_symtabs): Delete declaration.
6143 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6144 (cashier_psymtab): Comment function out.
6145 Delete declaration.
6146 (free_named_symtabs): Delete.
6147 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6148 * dbxread.c (end_psymtab): Likewise.
6149 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6150 * exec.c (exec_close_1): Ditto.
6151 * xcoffread.c (xcoff_end_psymtab): Likewise.
6152
65c06092
JB
61532010-01-19 Joel Brobecker <brobecker@adacore.com>
6154
6155 * stack.c (print_block_frame_labels): Comment function out.
6156
d5cd6034
JB
61572010-01-19 Joel Brobecker <brobecker@adacore.com>
6158
6159 Delete unused or undefined functions.
6160 * breakpoint.c (ep_parse_optional_filename): Delete.
6161 * dcache.c (dcache_write_line): Remove declaration.
6162 * infrun.c (build_infrun): Remove declaration.
6163 * tracepoint.c (tracepoint_save_command): Remove declaration.
6164 * linux-nat.c (init_lwp_list): Delete. No longer used.
6165 * event-loop.c (check_async_signal_handlers): Delete declaration.
6166 * infrun.c (init_execution_control_state): Delete.
6167 (proceed): Update comment to avoid mentioning
6168 init_execution_control_state.
6169 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6170 * ada-lang.c (ada_to_static_fixed_value): Delete.
6171 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6172 * cp-namespace.c (cp_copy_usings): Delete.
6173 * xml-syscall.c (xml_number_of_syscalls): Delete.
6174 * progspace.c (find_program_space_by_num): Delete.
6175 * inflow.c (handle_sigio): Delete declaration.
6176 * hppa-tdep.c (hppa_alignof): Delete.
6177 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6178 (mipsnbsd_core_osabi_sniffer): Delete.
6179
4e8f195d
TT
61802010-01-18 Tom Tromey <tromey@redhat.com>
6181
6182 PR c++/9680:
6183 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6184 (CONST_CAST): New tokens.
6185 (exp): Add new productions.
6186 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6187 reinterpret_cast.
6188 (is_cast_operator): New function.
6189 (yylex): Handle cast operators specially.
6190 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6191 UNOP_REINTERPRET_CAST>: New cases.
6192 * expprint.c (print_subexp_standard): Likewise.
6193 (op_name_standard): Likewise.
6194 (dump_subexp_body_standard): Likewise.
6195 * parse.c (operator_length_standard): Likewise.
6196 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6197 UNOP_REINTERPRET_CAST.
6198 * gdbtypes.c (class_types_same_p): New function.
6199 (is_ancestor): Use it.
6200 (is_public_ancestor): New function.
6201 (is_unique_ancestor_worker): Likewise.
6202 (is_unique_ancestor): Likewise.
6203 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6204 (is_unique_ancestor): Declare.
6205 * valops.c (value_reinterpret_cast): New function.
6206 (dynamic_cast_check_1): Likewise.
6207 (dynamic_cast_check_2): Likewise.
6208 (value_dynamic_cast): Likewise.
6209 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6210
d9c57d9f
JB
62112010-01-18 Joel Brobecker <brobecker@adacore.com>
6212
6213 Fix build failure when building without Python support.
6214 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6215 is not defined.
6216
f80d3ff2
JB
62172010-01-18 Joel Brobecker <brobecker@adacore.com>
6218
6219 Use XVS field type instead of doing a parallel lookup.
6220 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6221 if it is a reference type instead of doing a type lookup using
6222 the XVS field name.
6223
5bf03f13
JB
62242010-01-18 Joel Brobecker <brobecker@adacore.com>
6225
6226 Trust PAD types instead of using PAD___XVS.
6227 * ada-lang.c (trust_pad_over_xvs): New static variable.
6228 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6229 parallel XVS type, follow the XVS type instead of the PAD type.
6230 (unwrap_value): Make sure that there is no parallel XVE type
6231 before returning the value as is.
6232 (set_ada_list, show_ada_list): New static variables.
6233 (set_ada_command, show_ada_command): New functions.
6234 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6235 Add new "set/show ada trust-PAD-over-XVS" setting.
6236
973817a3
JB
62372010-01-18 Tom Tromey <tromey@redhat.com>
6238 Thiago Jung Bauermann <bauerman@br.ibm.com>
6239
6240 Allow "source" to load python scripts.
6241 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6242 * python/python.c (source_python_script): New function.
6243 * python/python.h (source_python_script): Add declaration.
6244 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6245 (script_ext_off, script_ext_soft, script_ext_strict)
6246 (script_ext_enums, script_ext_mode): New static constants.
6247 (show_script_ext_mode, find_and_open_script): New functions.
6248 (source_script): Enhance to handle Python scripts.
6249 (init_cli_cmds): Add set/show script-extension commands.
6250
98e03262
SS
62512010-01-16 Stan Shebs <stan@codesourcery.com>
6252
6253 * tracepoint.h (struct trace_status): Use unsigned long long
6254 instead of size_t.
6255 * tracepoint.c (trace_status_command): Fix printf directive.
6256 (trace_save_command): Check fwrite returns, fix printf directive.
6257 (trace_filename): New global.
6258 (tfile_open): Set it, check read returns.
6259 (tfile_close): Free trace_filename.
6260 (tfile_get_traceframe_address): Check read returns.
6261 (tfile_trace_find): Ditto.
6262 (tfile_fetch_registers): Ditto.
6263 (tfile_xfer_partial): Ditto.
6264 (tfile_get_trace_state_variable_value): Ditto.
6265
00bf0b85
SS
62662010-01-15 Stan Shebs <stan@codesourcery.com>
6267
6268 Add trace file support.
6269 * tracepoint.h (enum trace_stop_reason): New enum.
6270 (struct trace_status): New struct.
6271 (parse_trace_status): Declare.
6272 (struct uploaded_tp): Move here from remote.c,
6273 add fields for actions.
6274 (struct uploaded_tsv): New struct.
6275 * tracepoint.c (tfile_ops): New target vector.
6276 (trace_fd): New global.
6277 (tfile_open): New function.
6278 (tfile_close): New function.
6279 (tfile_files_info): New function.
6280 (tfile_get_trace_status): New function.
6281 (tfile_get_traceframe_address): New function.
6282 (tfile_trace_find): New function.
6283 (tfile_fetch_registers): New function.
6284 (tfile_xfer_partial): New function.
6285 (tfile_get_trace_state_variable_value): New function.
6286 (init_tfile_ops): New function.
6287 (_initialize_tracepoint): Call it, add tfile target.
6288 (trace_status): New global.
6289 (current_trace_status): New function.
6290 (trace_running_p): Remove, change all users to get from
6291 current_trace_status()->running.
6292 (get_trace_status): Remove.
6293 (trace_status_command): Call target_get_trace_status directly,
6294 report more detail including tracing stop reasons.
6295 (trace_find_command): Always allow tfind on a file.
6296 (trace_find_pc_command): Ditto.
6297 (trace_find_tracepoint_command): Ditto.
6298 (trace_find_line_command): Ditto.
6299 (trace_find_range_command): Ditto.
6300 (trace_find_outside_command): Ditto.
6301 (trace_frames_offset, cur_offset): Declare as off_t.
6302 (trace_regblock_size): Rename from reg_size, update users.
6303 (parse_trace_status): New function.
6304 (tfile_interp_line): New function.
6305 (disconnect_or_stop_tracing): Ensure current trace
6306 status before asking what to do.
6307 (stop_reason_names): New global.
6308 (trace_save_command): New command.
6309 (get_uploaded_tp): Move here from remote.c.
6310 (find_matching_tracepoint): Ditto.
6311 (merge_uploaded_tracepoints): New function.
6312 (parse_trace_status): Use stop_reason_names.
6313 (_initialize_tracepoint): Define tsave command.
6314 * target.h (target_ops): New fields to_save_trace_data,
6315 to_upload_tracepoints, to_upload_trace_state_variables,
6316 to_get_raw_trace_data, change to_get_trace_status
6317 to take a pointer to a status struct.
6318 (target_save_trace_data): New macro.
6319 (target_upload_tracepoints): New macro.
6320 (target_upload_trace_state_variables): New macro.
6321 (target_get_raw_trace_data): New macro.
6322 * target.c (update_current_target): Add new methods, change
6323 signature of to_get_trace_status.
6324 * remote.c (hex2bin): Make globally visible.
6325 (bin2hex): Ditto.
6326 (remote_download_trace_state_variable): Download name also.
6327 (remote_get_trace_status): Update parameter, use
6328 parse_trace_status.
6329 (remote_save_trace_data): New function.
6330 (remote_upload_tracepoints): New function.
6331 (remote_upload_trace_state_variables): New function.
6332 (remote_get_raw_trace_data): New function.
6333 (remote_start_remote): Use them.
6334 (_initialize_remote_ops): Add operations.
6335 * ax-gdb.c: Include breakpoint.h.
6336 * breakpoint.c (create_tracepoint_from_upload): Use
6337 break_command_really, return tracepoint, warn about unimplemented
6338 parts.
6339 * NEWS: Mention trace file addition.
6340
d904de5b
JK
63412010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 Fix compilation warning on gcc-3.4.
6344 * exec.c (print_section_info): Move the `displacement' variable
6345 initialization to its declaration.
6346
64aa9731
JK
63472010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6350 comparison.
6351
ca1f5def 63522010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
6353
6354 "info tasks" broken by typedefs in ATCB type definitions.
6355 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6356 ada_check_typedef before retrieving the length of the type for
6357 regular fields.
6358
12ab9e09
JB
63592010-01-15 Joel Brobecker <brobecker@adacore.com>
6360
6361 Do not use name-based lookup for unconstrained packed arrays.
6362 * ada-lang.c (find_parallel_type_by_descriptive_type):
6363 Limit the fallback to name-based lookups to the case where
6364 the type is a constrained packed array.
6365
c389c3dc
JB
63662010-01-15 Joel Brobecker <brobecker@adacore.com>
6367
6368 Enhance gdb-gdb.py to handle main_type.type_specific.
6369 * gdb-gdb.py: Print the type-specific part of struct main_type.
6370
7991dee7
JK
63712010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6374 * configure: Regenerate.
6375 * config.in: Regenerate.
6376 * utils.c: Include sys/resource.h.
6377 (dump_core, can_dump_core): New.
6378 (internal_vproblem): Update the comment. Check can_dump_core while
6379 setting dump_core_p. Replace two abort calls by dump_core calls.
6380
93c26624
JK
63812010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 Eli Zaretskii <eliz@gnu.org>
6383
6384 * NEWS: Document the PIE support.
6385
55235ad7
JK
63862010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6387
6388 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6389 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6390
41752192
JK
63912010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6392
6393 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6394 Replace exec_entry_point call by bfd_get_start_address.
6395
9f2982ff
JK
63962010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 Support Valgrind attachments broken by the PIE support.
6399 * auxv.c: Include gdbcore.h.
6400 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6401 parameters ops, object and annex. Remove their assertions.
6402 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6403 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6404 (memory_xfer_auxv): ... here.
6405 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6406 memory_xfer_auxv.
6407 * procfs.c (procfs_xfer_partial): Likewise.
6408 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6409 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6410 (svr4_solib_create_inferior_hook): Conditionalize the
6411 svr4_relocate_main_executable call.
6412
61f0d762
JK
64132010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6416 target_section. Find SECT in current_target_sections, gdb_assert it.
6417 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6418 New variable abfd.
6419 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6420 of separate debug info file.
6421
51bee8e9
JK
64222010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6423
6424 Support PIEs with no symfile_objfile.
6425 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6426 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6427
b8040f19
JK
64282010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6429
6430 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6431 code part to ...
6432 (svr4_static_exec_displacement): ... a new function.
6433 (svr4_exec_displacement): New function.
6434 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6435 new_offsets using alloca now. Remove variable old_chain and changed.
6436 Call objfile_relocate unconditionally now.
6437
eb90ce83
DE
64382010-01-14 Doug Evans <dje@google.com>
6439
6440 * gdbtypes.c (arch_flags_type): Fix comment.
6441 * gdbtypes.h (arch_composite_type): Fix comment.
6442
bdfed3bc
TG
64432009-01-14 Tristan Gingold <gingold@adacore.com>
6444
6445 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6446 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6447 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6448 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6449 macho_add_oso_symfile.
6450 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6451
1596ad23
JB
64522010-01-14 Joel Brobecker <brobecker@adacore.com>
6453
6454 Tru64: Dead threads are never deleted.
6455 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6456 (dec_thread_count_gdb_threads): Fix counter increment.
6457 (dec_thread_add_gdb_thread): Fix *listp increment.
6458 (resync_thread_list): Fix bug in deletion of dead threads that
6459 caused all threads to be deleted, instead of just the dead ones.
6460
be759fcf
PM
64612010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6462
6463 PR python/10705
6464
6465 * python/python-internal.h: Add lazy_string_object_type
6466 definition.
6467 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6468 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6469 * python/py-value.c (valpy_lazy_string): New function.
6470 (convert_value_from_python): Add lazy string conversion.
6471 * python/py-prettyprint.c (pretty_print_one_value): Check if
6472 return is also a lazy string.
6473 (print_string_repr): Add lazy string printing branch.
6474 (print_children): Likewise.
6475 * python/py-lazy-string.c: New file. Implement lazy strings.
6476 * python/python.c (_initialize_python): Call
6477 gdbpy_initialize_lazy_string.
6478 * varobj.c (value_get_print_value): Add lazy string printing
6479 branch. Account for encoding.
6480 * c-lang.c (c_printstr): Account for new encoding argument. If
6481 encoding is NULL, find encoding suited for type, otherwise use
6482 user encoding.
6483 * language.h (language_defn): Add encoding argument.
6484 (LA_PRINT_STRING): Likewise.
6485 * language.c (unk_lang_printstr): Update to reflect new encoding
6486 argument to language_defn.
6487 * ada-lang.h (ada_printstr): Likewise.
6488 * c-lang.h (c_printstr): Likewise.
6489 * p-lang.h (pascal_printstr);
6490 * f-lang.c (f_printstr): Likewise.
6491 * m2-lang.c (m2_printstr): Likewise.
6492 * objc-lang.c (objc_printstr): Likewise.
6493 * p-lang.c (pascal_printstr): Likewise.
6494 * scm-lang.c (scm_printstr): Likewise.
6495 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6496 encoding argument.
6497 * ada-valprint.c (ada_printstr): Likewise.
6498 * f-valprint.c (f_val_print): Likewise
6499 * m2-valprint.c (m2_val_print): Likewise.
6500 * p-valprint.c (pascal_val_print): Likewise.
6501 * expprint.c (print_subexp_standard): Likewise.
6502 * valprint.c (val_print_string): Likewise.
6503 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6504 (SUBDIR_PYTHON_SRCS): Likewise.
6505 (py-lazy-string.o): New rule.
6506
1fe72117 65072010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
6508
6509 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6510 uninitialized" warning from gcc on local `tree'.
6511
dc146f7c
VP
65122010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6513
6514 Implement core awareness.
6515
6516 * bcache.c (compare_ints): Remove
6517 (print_percentage): Use compare_positive_ints.
6518 * defs.h (compare_positive_ints): Declare.
6519 * linux-nat.h (struct lin_lwp): New field core.
6520 (linux_nat_core_of_thread_1): Declare.
6521 * linux-nat.c (add_lwp): Init the 'core' field.
6522 (linux_nat_wait_1): Record the core.
6523 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6524 (linux_nat_add_target): Register the above.
6525 * linux-thread-db.c (update_thread_core): New.
6526 (thread_db_find_new_threads): Update core information for
6527 every thread.
6528 * remote.c (struct private_thread_info): New.
6529 (free_private_thread_info, demand_private_info): New.
6530 (PACKET_qXfer_threads, use_osdata_threads): New.
6531 (struct thread_item, threads_parsing_context
6532 (start_thread, end_thread, thread_attributes)
6533 (thread_children, threads_children, threads_elements): New.
6534 (remote_threads_info): Try qXfer:threads before anything
6535 else.
6536 (remote_protocol_packets): Register qXfer:threads.
6537 (remote_open_1): Init use_osdata_threads.
6538 (struct stop_reply): New field 'core'.
6539 (remote_parse_stop_reply): Parse core number.
6540 (process_stop_reply): Record core number.
6541 (remote_xfer_partial): Handle qXfer:threads.
6542 (remote_core_of_thread): New.
6543 (init_remote_ops): Register remote_core_of_thread.
6544 (_initialize_remote): Register qXfer:read.
6545 * target.c (target_core_of_thread): New
6546 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6547 (struct target_ops): New field to_core_of_threads.
6548 (target_core_of_thread): Declare.
6549 * gdbthread.h (struct thread_info): New field private_dtor.
6550 * thread.c (print_thread_info): Report the core.
6551 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6552 * utils.c (compare_positive_ints): New.
6553 * features/threads.dtd: New.
6554 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6555 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6556 (do_nothing, free_vector_of_osdata_items)
6557 (splay_tree_int_comparator, free_splay_tree): New.
6558 (print_one_inferior_data): Implemented printing of selected
6559 inferiors. Collect and print cores.
6560 (output_cores): New.
6561 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6562 thread groups together with --available.
6563
d30c5336
JK
65642010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6565
6566 * configure: Regenerate (for _STRUCTURED_PROC).
6567
02893727
JB
65682010-01-12 Joel Brobecker <brobecker@adacore.com>
6569
6570 Delete dead function.
6571 * ada-lang.c (extract_string): Delete. No longer used.
6572
46ed2d6f
JB
65732010-01-12 Joel Brobecker <brobecker@adacore.com>
6574
6575 Fix -Wunused warning in dec-thread.c.
6576 * dec-thread.c (dec_thread_count_gdb_threads)
6577 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6578
606b8d1a
JB
65792010-01-12 Joel Brobecker <brobecker@adacore.com>
6580
6581 * ada-valprint.c (ada_print_floating): Remove trailing space.
6582
b4ba55a1
JB
65832010-01-12 Joel Brobecker <brobecker@adacore.com>
6584
6585 Add support for DW_AT_GNAT_descriptive_type.
6586 * gdbtypes.h (enum type_specific_kind): New enum.
6587 (struct main_type) [type_specific_field]: New component.
6588 [type_specific]: Add new component "gnat_stuff".
6589 (struct gnat_aux_type): New type.
6590 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6591 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6592 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6593 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6594 (TYPE_SPECIFIC_FIELD): New macros.
6595 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6596 type does not hold any cplus-specific data.
6597 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6598 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6599 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6600 cplus-specific data.
6601 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6602 Set new component TYPE_SPECIFIC_FIELD (type).
6603 (gnat_aux_default): New constant.
6604 (allocate_gnat_aux_type): New function.
6605 (init_type): Add initialization the type-specific stuff for
6606 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6607 (print_gnat_stuff): New function.
6608 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6609 specific data. Adjust code that prints the contents of the
6610 type-specific union using the TYPE_SPECIFIC_FIELD value.
6611 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6612 the type cplus stuff for Ada types.
6613 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6614 Error out if these routines are called with an Ada type.
6615 (read_structure_type, read_array_type, read_subrange_type):
6616 Add call to set_descriptive_type.
6617 (set_die_type): Initialize the gnat-specific data if necessary.
6618 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6619 New functions.
6620 * ada-lang.c (decode_constrained_packed_array_type): Use
6621 decode_constrained_packed_array_type instead of doing a standard
6622 lookup to locate a parallel type.
6623 (find_parallel_type_by_descriptive_type): New function.
6624 (ada_find_parallel_type_with_name): New function.
6625 (ada_find_parallel_type): Reimplement using
6626 ada_find_parallel_type_with_name.
6627 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6628 to check if type has a cplus stuff.
6629 * linespec.c (total_number_of_methods): Likewise.
6630 * mdebugread.c (new_type): Likewise.
6631
b0f02ee9
JK
66322010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 * NEWS: Document the 0b binary number prefix parsing.
6635
b260e109
JK
66362010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6637
6638 * objfiles.c (objfile_relocate1): Change the return type to int.
6639 Describe the new return value. Return non-zero if data changed.
6640 (objfile_relocate): New variable changed. Set it. Call
6641 breakpoint_re_set depending on CHANGED.
6642
b5cfddf5
JK
66432010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6644
6645 Implement binary numbers parsing.
6646 * c-exp.y (parse_number): New case 'b' and 'B'.
6647
e0ae4240
JK
66482010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6649 Tristan Gingold <gingold@adacore.com>
6650
6651 * solib.c (info_sharedlibrary_command): Replace
6652 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6653 objfile_has_symbols.
6654
6e0e5977
JB
66552010-01-10 Joel Brobecker <brobecker@adacore.com>
6656
6657 * NEWS: Document the improvements made to the mips-irix port.
6658
7348c5e1
JB
66592010-01-09 Joel Brobecker <brobecker@adacore.com>
6660
6661 Fix the documentation of valprint.c:value_print.
6662 * valprint.c (value_print): Update the function description to
6663 mention that the syntax of the output follows the current_language,
6664 not necessarily C.
6665
567995e1
JK
66662010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6667
6668 Fix displacement of separate debug info files.
6669 * objfiles.c (objfile_relocate): Rename to ...
6670 (objfile_relocate1): ... here and make it static. Extend the comment.
6671 (objfile_relocate): New function.
6672 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6673 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6674 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6675 allocated using alloca.
6676 * symfile.c (copy_section_addr_info): Remove.
6677 (build_section_addr_info_from_objfile): Make it global. New variables
6678 addr_bit and mask, use them.
6679 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6680 (copy_section_addr_info): Remove.
6681
6d8eadbd
JB
66822010-01-09 Joel Brobecker <brobecker@adacore.com>
6683
6684 Signal unwinder for mips-irix N32.
6685 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6686 tramp-frame.h.
6687 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6688 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
6689 (SIGCONTEXT_LO_OFF): New macros.
6690 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
6691 (mips_irix_n32_tramp_frame): New static constant.
6692 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6693
27087a3d
JB
66942010-01-09 Joel Brobecker <brobecker@adacore.com>
6695
6696 Breakpoint in shared library does not work on mips-irix.
6697 * procfs.c: #include "observer.h".
6698 (procfs_inferior_created): New function, moving here the code
6699 which unsets the syssgi syscall-exit notifications.
6700 (procfs_create_inferior): Remove the code which unsets the syssgi
6701 syscall-exit notifications. It is too early to do this here.
6702 (_initialize_procfs): Attach the procfs_inferior_created observer.
6703
f08877ba
JB
67042010-01-09 Joel Brobecker <brobecker@adacore.com>
6705
6706 Wrong return convention for arrays (mips-irix).
6707 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6708 128 bits or smaller are returned the same way as structs
6709 and unions of the the same size.
6710
e4b97d48
JB
67112010-01-09 Joel Brobecker <brobecker@adacore.com>
6712
6713 Cannot set the PC on mips-irix.
6714 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6715 register number, no the cooked one.
6716
11377e68
JB
67172010-01-09 Joel Brobecker <brobecker@adacore.com>
6718
6719 Error while loading core file on mips-irix.
6720 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6721 if debugging from a core file.
6722
b2391021
JB
67232010-01-09 Joel Brobecker <brobecker@adacore.com>
6724
6725 GDB hangs when attaching to process on mips-irix.
6726 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6727 attaching to a process.
6728
f2ec0ecf
JB
67292010-01-09 Joel Brobecker <brobecker@adacore.com>
6730
6731 Use the correct breakpoint instruction on mips-irix.
6732 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6733 containing the correct breakpoint instruction to use on mips-irix.
6734 Use it when the osabi is GDB_OSABI_IRIX.
6735
3c95f01c
JB
67362010-01-09 Joel Brobecker <brobecker@adacore.com>
6737
6738 -Wunused warning in procfs.c (mips-irix only).
6739 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6740 throughout instead of using praddset and prdelset respectively.
6741
4b7703ad
JB
67422010-01-09 Joel Brobecker <brobecker@adacore.com>
6743
6744 GDB crash while stepping into function.
6745 * infrun.c (handle_inferior_event): Refetch the current frame
6746 after handling what.main_action, in case that pointer became
6747 dangling.
6748
12c89474
JB
67492010-01-09 Joel Brobecker <brobecker@adacore.com>
6750
6751 Fix build failure of solaris-hosted cross debuggers.
6752 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6753
1a3fd262 67542010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
6755
6756 Fix build failure on sparc-solaris.
6757 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6758
75242ef4
JK
67592010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6760
6761 Move some symfile code into subroutines.
6762 * symfile.h (relative_addr_info_to_section_offsets)
6763 (addr_info_make_relative): New prototypes.
6764 * symfile.c (default_symfile_offsets): Move a part to ...
6765 (relative_addr_info_to_section_offsets): ... this new function.
6766 (default_symfile_offsets): Call it.
6767 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6768 this part to ...
6769 (addr_info_make_relative): ... this new function.
6770
268a4a75
JK
67712010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 Add from_tty to solib_create_inferior_hook.
6774 * infcmd.c (post_create_inferior): Move solib_add after
6775 solib_create_inferior_hook. Pass from_tty to
6776 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6777 0 from_tty and comment why.
6778 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6779 * linux-nat.c (linux_child_follow_fork): Likewise.
6780 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6781 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6782 from_tty.
6783 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6784 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6785 * solib-null.c (null_solib_create_inferior_hook): Likewise.
6786 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6787 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6788 * solib-som.c (som_solib_create_inferior_hook): Likewise.
6789 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6790 Pass it to svr4_so_ops.solib_create_inferior_hook.
6791 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6792 from_tty.
6793 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
6794 solib_add.
6795 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
6796 enable_break.
6797 * solib-target.c (solib_target_solib_create_inferior_hook): New
6798 parameter from_tty.
6799 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
6800 it to ops->solib_create_inferior_hook.
6801 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6802 Move solib_add after solib_create_inferior_hook, call it now with
6803 from_tty as 0. New comment there.
6804 * solib.h (solib_create_inferior_hook): New parameter from_tty.
6805 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6806 Likewise.
6807
cf00dfa7
VP
68082010-01-08 Vladimir Prus <vladimir@codesourcery.com>
6809
6810 Fix multiexec race.
6811 * infrun.c (handle_inferior_event): Use get_thread_regcache
6812 with events ptid, not get_current_regcache.
6813
f91e5ac3
JB
68142009-01-08 Joel Brobecker <brobecker@adacore.com>
6815
6816 GDB crash with empty executable name (MinGW).
6817 * source.c (openp): Add assert that parameter string is not NULL.
6818 if parameter string is an empty string, then return with a failure
6819 immediately.
6820
92b9ce5b
JB
68212009-01-08 Joel Brobecker <brobecker@adacore.com>
6822
6823 Get rid of support for VAX Floats.
6824 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6825 (ada_vax_float_print_function): Delete.
6826 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6827 (ada_vax_float_print_function): Delete.
6828 * ada-typeprint.c (print_vax_floating_point_type): Delete.
6829 (ada_print_type): Remove support for VAX floats.
6830 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6831
268a4a75 68322010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
6833
6834 * stabsread.c (read_args): Handle zero arguments.
6835
f0f20949
JB
68362009-01-08 Joel Brobecker <brobecker@adacore.com>
6837
6838 Cannot find in-tree libiconv.a after reconfigure.
6839 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6840 that we can use, then cache the path to this archive.
6841 * configure: Regenerate.
6842
6b6218c5
SS
68432010-01-07 Stan Shebs <stan@codesourcery.com>
6844
35b1e5cc
SS
6845 Make tracepoint operations go through target vector.
6846 * target.h (enum trace_find_type): New enum.
6847 (struct target_ops): New fields to_trace_init,
6848 to_download_tracepoint, to_download_trace_state_variable,
6849 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6850 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6851 to_set_disconnected_tracing.
6852 (target_trace_init): New macro.
6853 (target_download_tracepoint): New macro.
6854 (target_download_trace_state_variable): New macro.
6855 (target_trace_start): New macro.
6856 (target_trace_set_readonly_regions): New macro.
6857 (target_get_trace_status): New macro.
6858 (target_trace_stop): New macro.
6859 (target_trace_find): New macro.
6860 (target_get_trace_state_variable_value): New macro.
6861 (target_set_disconnected_tracing): New macro.
6862 * target.c (update_current_target): Inherit and set defaults for
6863 tracepoint operations.
6864 * tracepoint.c (default_collect): Make globally visible.
6865 (target_is_remote): Remove, along with all calls.
6866 (tvariables_info): Call target_get_trace_state_variable_value.
6867 (remote_set_transparent_ranges): Remove.
6868 (trace_start_command): Call target_trace_init,
6869 target_download_tracepoint, etc.
6870 (download_tracepoint): Remove.
6871 (trace_stop_command): Simplify.
6872 (stop_tracing): Call target_trace_stop.
6873 (get_trace_status): Call target_get_trace_status.
6874 (trace_status_command): Add case for targets that cannot trace.
6875 (finish_tfind_command): Change to take numerical arguments, call
6876 target_trace_find.
6877 (trace_find_command): Update call to finish_tfind_command.
6878 (trace_find_pc_command): Ditto.
6879 (trace_find_tracepoint_command): Ditto.
6880 (trace_find_line_command): Ditto.
6881 (trace_find_range_command): Ditto.
6882 (trace_find_outside_command): Ditto.
6883 (set_disconnected_tracing_value): Call
6884 target_set_disconnected_tracing.
6885 * remote.c: Add protocol encoding bits from tracepoint.c.
6886 (trace_error): Move from tracepoint.c.
6887 (remote_get_noisy_reply): Ditto.
6888 (free_actions_list_cleanup_wrapper): Ditto.
6889 (free_actions_list): Ditto.
6890 (remote_trace_init): New function.
6891 (remote_download_tracepoint): New function.
6892 (remote_download_trace_state_variable): New function.
6893 (remote_trace_set_readonly_regions): New function.
6894 (remote_trace_start): New function.
6895 (remote_get_trace_status): New function.
6896 (remote_trace_stop): New function.
6897 (remote_trace_find): New function.
6898 (remote_download_trace_state_variable): New function.
6899 (remote_set_disconnected_tracing): New function.
6900 (init_remote_ops): Add tracepoint operations.
6901
6b6218c5
SS
6902 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6903
089b4803
TG
69042010-01-07 Tristan Gingold <gingold@adacore.com>
6905
6906 * symfile.c (build_section_addr_info_from_objfile): New function.
6907 (symbol_file_add_separate): Don't use offsets from objfile but
6908 built an addr info.
6909
d5551862
SS
69102010-01-06 Stan Shebs <stan@codesourcery.com>
6911
6912 Support disconnected tracing.
6913 * infcmd.c (detach_command): Ask whether to stop tracing.
6914 * cli/cli-cmds.c (quit_command): Ditto.
6915 * breakpoint.h (struct breakpoint): New field number_on_target.
6916 * breakpoint.c (create_tracepoint_from_upload): New function.
6917 (get_tracepoint_by_number_on_target): New function.
6918 * remote.c (struct remote): New field disconnected_tracing.
6919 (remote_disconnected_tracing_feature): New function.
6920 (remote_protocol_features): Add DisconnectedTracing.
6921 (struct uploaded_tp): New struct.
6922 (uploaded_tps): New global.
6923 (get_uploaded_tp): New function.
6924 (find_matching_tracepoint): New function.
6925 (remote_get_tracing_state): New function.
6926 (remote_start_remote): Call it.
6927 * tracepoint.c (disconnected_tracing): New global.
6928 (trace_start_command): Initialize number_on_target.
6929 (stop_tracing): New function, split out from...
6930 (trace_stop_command): Call stop_tracing.
6931 (get_trace_status): New function, split out from...
6932 (trace_status_command): Call get_trace_status, add info on
6933 disconnection behavior.
6934 (disconnect_or_stop_tracing): New function.
6935 (finish_tfind_command): Translate from number on target.
6936 (trace_find_tracepoint_command): Translate to number on target.
6937 (send_disconnected_tracing_value): New function.
6938 (set_disconnected_tracing): New function.
6939 (_initialize_tracepoint): Add disconnected-tracing variable.
6940 * NEWS: Mention disconnected tracing.
6941
15d123c9
TG
69422010-01-06 Tristan Gingold <gingold@adacore.com>
6943
6944 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6945 parameter to main_objfile. Iterate on all separate debug objfiles.
6946 * symfile.h (symbol_file_add_separate)
6947 (find_separate_debug_file_by_debuglink): Remove parameter names.
6948 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6949 (reread_symbols): Use free_objfile_separate_debug.
6950 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6951 Adjust comment.
6952 (objfile_separate_debug_iterate, add_separate_debug_objfile)
6953 (free_objfile_separate_debug): New prototypes.
6954 * objfiles.c (objfile_separate_debug_iterate): New function.
6955 (add_separate_debug_objfile, free_objfile_separate_debug): New
6956 functions.
6957 (free_objfile): Use free_objfile_separate_debug. Adjust for
6958 multiple separate debug objfile.
6959 (objfile_has_symbols): Adjust comment. Iterate on all separate
6960 debug objfiles.
6961 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6962 debug objfile.
6963 (lookup_minimal_symbol_text): Ditto.
6964 (lookup_minimal_symbol_by_pc_name): Ditto.
6965 (lookup_minimal_symbol_solib_trampoline): Ditto.
6966 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6967 debug objfiles.
6968
7a697b8d
SS
69692010-01-05 Stan Shebs <stan@codesourcery.com>
6970
6971 Add fast tracepoints.
6972 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6973 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6974 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6975 * breakpoint.c (tracepoint_type): New function.
6976 (ALL_TRACEPOINTS): Use it.
6977 (should_be_inserted): Ditto.
6978 (bpstat_check_location): Ditto.
6979 (print_one_breakpoint_location): Ditto.
6980 (user_settable_breakpoint): Ditto.
6981 (set_breakpoint_location_function): Ditto.
6982 (disable_breakpoints_in_shlibs): Ditto.
6983 (delete_trace_command): Ditto.
6984 (print_it_typical): Add bp_fast_tracepoint case.
6985 (bpstat_what): Ditto.
6986 (print_one_breakpoint_location): Ditto.
6987 (allocate_bp_location): Ditto.
6988 (mention): Ditto.
6989 (breakpoint_re_set_one): Ditto.
6990 (disable_command): Ditto.
6991 (enable_command): Ditto.
6992 (check_fast_tracepoint_sals): New function.
6993 (break_command_really): Call it.
6994 (ftrace_command): New function.
6995 (_initialize_breakpoint): Add ftrace command.
6996 * gdbarch.sh (fast_tracepoint_valid_at): New.
6997 * gdbarch.h, gdbarch.c: Regenerate.
6998 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6999 (i386_gdbarch_init): Use it.
7000 * remote.c (struct remote_state): New field fast_tracepoints.
7001 (PACKET_FastTracepoints): New packet config type.
7002 (remote_fast_tracepoint_feature): New function.
7003 (remote_protocol_features): Add FastTracepoints.
7004 (remote_supports_fast_tracepoints): New function.
7005 (_initialize_remote): Add FastTracepoints.
7006 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7007 * NEWS: Mention fast tracepoints.
7008
737a160e
JB
70092010-01-06 Joel Brobecker <brobecker@adacore.com>
7010
7011 * gdb-gdb.py: New file.
7012
ce6cca6d
MS
70132010-01-05 Michael Snyder <msnyder@vmware.com>
7014
7015 * infrun.c (handle_inferior_event): Fix typo in comment.
7016
0d15807d
JK
70172010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7018
7019 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7020
7803799a
UW
70212010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7022
c8d5aac9 7023 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
7024 and s390x-linux64.
7025 (s390-linux32-expedite): Define.
7026 (s390-linux64-expedite): Define.
7027 (s390x-linux64-expedite): Define.
7028 * features/s390-acr.xml: New file.
7029 * features/s390-fpr.xml: New file.
7030 * features/s390-core32.xml: New file.
7031 * features/s390-core64.xml: New file.
7032 * features/s390x-core64.xml: New file.
7033 * features/s390-linux32.xml: New file.
7034 * features/s390-linux64.xml: New file.
7035 * features/s390x-linux64.xml: New file.
7036 * features/s390-linux32.c: New generated file.
7037 * features/s390-linux64.c: New generated file.
7038 * features/s390x-linux64.c: New generated file.
7039
7040 * regformats/s390-linux32.dat: New generated file.
7041 * regformats/s390-linux64.dat: New generated file.
7042 * regformats/s390x-linux64.dat: New generated file.
7043 * regformats/reg-s390.dat: Remove.
7044 * regformats/reg-s390x.dat: Remove.
7045
7046 * s390-nat.c: Include "auxv.h" and <elf.h>.
7047 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7048 (s390_target_wordsize): New function.
7049 (s390_auxv_parse): Likewise.
7050 (s390_get_hwcap): Likewise.
7051 (s390_read_description): Likewise.
7052 (_initialize_s390_nat): Install s390_auxv_parse and
7053 s390_read_description.
7054
7055 * s390-tdep.c: Include "features/s390-linux32.c",
7056 "features/s390-linux64.c", and "features/s390x-linux64.c".
7057 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7058 (s390_register_call_saved): New function.
7059 (s390_register_name): Remove.
7060 (s390_register_type): Remove.
7061 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7062 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7063 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7064 (s390_pseudo_register_name): New function.
7065 (s390_pseudo_register_type): New function.
7066 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7067 Handle full GPR pesudos and varying pseudo register numbers.
7068 (s390_pseudo_register_write): Likewise
7069 (s390x_pseudo_register_read): Remove.
7070 (s390x_pseudo_register_write): Likewise.
7071 (s390_register_group): Remove.
7072 (s390_pseudo_register_group): New function.
7073 (s390_regmap_gregset): Add GPR upper halves.
7074 (s390x_regmap_gregset): Likewise.
7075 (s390_regmap_fpregset): Likewise.
7076 (s390_regmap_upper): New global variable.
7077 (s390_upper_regset): New global variable.
7078 (s390_upper_regset_sections): New global variable.
7079 (s390_regset_from_core_section): Handle GPR upper halves.
7080 (s390_core_read_description): New function.
7081 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7082 register information. Handle varying pseudo register numbers.
7083 (s390_backchain_frame_unwind_cache): Likewise.
7084 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7085 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7086 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7087 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7088 Handle varying pseudo register numbers.
7089 (s390_unwind_pc): Handle varying pseudo register numbers.
7090 (s390_dwarf2_prev_register): New function.
7091 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7092 register information. Handle varying pseudo register numbers.
7093 Install s390_dwarf2_prev_register to unwind full GPRs.
7094 (s390_gdbarch_init): Handle target descriptions. Assign varying
7095 pseudo register numbers. Install s390_adjust_frame_regnum.
7096 (_initialize_s390_tdep): Initialize target descriptions.
7097
7098 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7099 (S390_NUM_REGS): Redefine to include upper half registers.
7100 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7101 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7102 (tdesc_s390_linux32): Add declaration.
7103 (tdesc_s390_linux64): Likewise.
7104 (tdesc_s390x_linux64): Likewise.
7105
1b1818e4
UW
71062010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7107
7108 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7109 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7110 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7111 (ppc_linux_vmx_regset_sections): Likewise.
7112 (ppc_linux_fp_regset_sections): Likewise.
7113
7114 * corelow.c (get_core_register_section): Constify arguments.
7115 (get_core_registers): Use gdbarch_core_regset_sections instead
7116 of hard-coded platform-specific register section names.
7117
dcbf108f
UW
71182010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7119
7120 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 7121 a register, assume the least-significant part is used.
dcbf108f
UW
7122 (write_pieced_value): Likewise.
7123
704e9165
UW
71242010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7125
7126 * printcmd.c: Include "arch-utils.h".
7127 (do_one_display): Re-parse expression if current architecture changed.
7128
c54eabfa
JK
71292010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7130 Joel Brobecker <brobecker@adacore.com>
7131
7132 * gdbtypes.c (check_typedef): New comment on type length.
7133 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7134 comment on type length.
7135 (value_primitive_field): Keep the original TYPE value, new comment.
7136
50cb2941
JK
71372010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7140 p_start. Change != comparisons to > and < comparisons.
7141
be66db07
JK
71422010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7143
7144 * cli/cli-script.c (process_next_line): Check P2 overrun.
7145
abd775ce
JB
71462009-01-01 Joel Brobecker <brobecker@adacore.com>
7147
7148 Update the copyright hearder to add year 2010 for most GDB files.
7149
6479260d
JB
71502009-01-01 Joel Brobecker <brobecker@adacore.com>
7151
7152 Fix build failure in inf-ptrace.c.
7153 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7154
4a70f654
JB
71552010-01-01 Joel Brobecker <brobecker@adacore.com>
7156
7157 * top.c (print_gdb_version): Update copyright year.
7158
b9ee2233
JB
71592010-01-01 Joel Brobecker <brobecker@adacore.com>
7160
7161 Fix break *FUN'address thread NUM.
7162 * ada-lex.l (task): Expand rule to also match the thread keyword.
7163
70575d34
JB
71642010-01-01 Joel Brobecker <brobecker@adacore.com>
7165
7166 Fix break *FUN'address task NUM.
7167 * ada-lex.l (task): New rule.
7168 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7169 been built before using it.
7170
e1e4d4a4 7171For older changes see ChangeLog-2009.
c906108c
SS
7172\f
7173Local Variables:
7174mode: change-log
7175left-margin: 8
7176fill-column: 74
7177version-control: never
57da7796 7178coding: utf-8
c906108c 7179End:
This page took 1.452196 seconds and 4 git commands to generate.