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