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