*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-07-09 Tom Tromey <tromey@redhat.com>
2
3 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
4 'hint' if it is NULL.
5
6 2010-07-09 Hui Zhu <teawater@gmail.com>
7
8 * source.c (print_source_lines_base): Add check for noprint.
9
10 2010-07-08 Joel Brobecker <brobecker@adacore.com>
11
12 * python/python-config.py: Resync with Python 2.7 version of this
13 script.
14
15 2010-07-08 Joel Brobecker <brobecker@adacore.com>
16
17 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
18
19 2010-07-07 Joel Brobecker <brobecker@adacore.com>
20
21 * NEWS: Create a new section for the next release branch.
22 Rename the section of the current branch, now that it has
23 been cut.
24
25 2010-07-07 Joel Brobecker <brobecker@adacore.com>
26
27 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
28 * version.in: Bump version to 7.2.50.20100707-cvs.
29
30 2010-07-07 Tom Tromey <tromey@redhat.com>
31
32 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
33 LOC_COMPUTED symbol.
34 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
35 (dwarf2_loc_desc_needs_frame): Likewise.
36 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
37 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
38 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
39 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
40 'offset' argument.
41 (struct dwarf2_frame_cache) <text_offset>: New field.
42 (dwarf2_frame_cache): Set new field.
43 (dwarf2_frame_prev_register): Update.
44 (dwarf2_frame_sniffer): Update.
45 (dwarf2_frame_base_sniffer): Update.
46 (dwarf2_frame_find_fde): Add 'out_offset' argument.
47
48 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
49 Thiago Jung Bauermann <bauerman@br.ibm.com>
50
51 Support for hw accelerated condition watchpoints in booke powerpc.
52
53 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
54 and move to eval.c. Change callers.
55 (insert_bp_location): Pass watchpoint condition in
56 target_insert_watchpoint.
57 (remove_breakpoint_1) Pass watchpoint condition in
58 target_remove_watchpoint.
59 (watchpoint_locations_match): Call
60 target_can_accel_watchpoint_condition.
61 * eval.c: Include wrapper.h.
62 (fetch_subexp_value): Moved from breakpoint.c.
63 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
64 Formatting fix.
65 (can_use_watchpoint_cond_accel): New function.
66 (calculate_dvc): Likewise.
67 (num_memory_accesses): Likewise.
68 (check_condition): Likewise.
69 (ppc_linux_can_accel_watchpoint_condition): Likewise
70 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
71 check_condition and calculate_dvc.
72 (ppc_linux_remove_watchpoint): Likewise.
73 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
74 ppc_linux_can_accel_watchpoint_condition
75 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
76 condition.
77 (debug_to_remove_watchpoint): Likewise.
78 (debug_to_can_accel_watchpoint_condition): New function.
79 (update_current_target): Set to_can_accel_watchpoint_condition.
80 (setup_target_debug): Set to_can_accel_watchpoint_condition.
81 * target.h: Add opaque declaration for struct expression.
82 (struct target_ops) <to_insert_watchpoint>,
83 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
84 <to_can_accel_watchpoint_condition>: New member.
85 condition. Update all callers and implementations.
86 (target_can_accel_watchpoint_condition): New macro.
87 * value.c (free_value_chain): New function.
88 * value.h (fetch_subexp_value): New prototype.
89 (free_value_chain): Likewise.
90
91 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
92
93 * linux-nat.c (linux_nat_do_thread_registers): Use section size
94 from gdbarch_core_regset_sections also for .reg if present.
95
96 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
97 section size for .reg.
98 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
99 (ppc_linux_vmx_regset_sections): Likewise.
100 (ppc_linux_fp_regset_sections): Likewise.
101 (ppc64_linux_vsx_regset_sections): New variable.
102 (ppc64_linux_vmx_regset_sections): Likewise.
103 (ppc64_linux_fp_regset_sections): Likewise.
104 (ppc_linux_init_abi): Install core_regset_section lists appropriate
105 for current word size.
106
107 2010-07-06 Joel Brobecker <brobecker@adacore.com>
108
109 * server.c (myresume): Make static.
110
111 2010-07-06 Tom Tromey <tromey@redhat.com>
112
113 * configure, config.in: Rebuild.
114 * configure.ac (HAVE_LIBPYTHON2_7): New define.
115 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
116
117 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
118
119 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
120 "clear".
121
122 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
123
124 * gdbtypes.h (floatformats_ieee_half): Add declaration.
125 * gdbtypes.c (floatformats_ieee_half): New variable.
126 * doublest.c (floatformat_from_length): Set format to
127 gdbarch_half_format if length matches.
128 * gdbarch.sh (half_bit): New architecture method.
129 (half_format): Likewise.
130 * gdbarch.h: Regenerate.
131 * gdbarch.c: Likewise.
132
133 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
134 Joel Brobecker <brobecker@adacore.com>
135
136 Fix re-run of PIE executable, PR shlibs/11776.
137 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
138 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
139
140 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
141 Joel Brobecker <brobecker@adacore.com>
142
143 * auxv.c (memory_xfer_auxv): Update attach comment.
144 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
145 svr4_relocate_main_executable.
146 (svr4_solib_create_inferior_hook): Make the call to
147 svr4_relocate_main_executable unconditional.
148
149 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
150 Joel Brobecker <brobecker@adacore.com>
151
152 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
153
154 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
155 Joel Brobecker <brobecker@adacore.com>
156
157 Fix attaching to PIEs prelinked on the disk after the process was
158 started.
159 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
160 Verify it against bfd_get_arch_size. Try to match arbitrary
161 displacement for the phdrs comparison.
162
163 2010-07-02 Tom Tromey <tromey@redhat.com>
164
165 PR exp/11780:
166 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
167 value as optimized-out.
168
169 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
170 Thiago Jung Bauermann <bauerman@br.ibm.com>
171
172 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
173 represent?" question in comment. Change comment to a proper sentence.
174
175 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
176
177 * c-valprint.c (c_val_print): Fix printing of character vectors.
178
179 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
180
181 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
182 create_breakpoint prototype.
183
184 2010-07-01 Pedro Alves <pedro@codesourcery.com>
185
186 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
187 usefulness suggestion of multiple breakpoints at same location.
188
189 2010-07-01 Pedro Alves <pedro@codesourcery.com>
190
191 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
192
193 2010-07-01 Pedro Alves <pedro@codesourcery.com>
194
195 * dwarf2loc.c (locexpr_tracepoint_var_ref)
196 (loclist_tracepoint_var_ref): Handle optimized out values.
197
198 2010-07-01 Pedro Alves <pedro@codesourcery.com>
199
200 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
201 unnecessary space in string.
202 * filesystem.c (_initialize_filesystem): Ditto.
203 * frame.c (_initialize_frame): Ditto.
204 * infcmd.c (step_once): Ditto.
205 * infrun.c (_initialize_infrun): Ditto.
206 * linux-nat.c (linux_child_follow_fork): Ditto.
207 * maint.c (maintenance_deprecate): Ditto.
208 * memattr.c (_initialize_mem): Ditto.
209 * mips-tdep.c (_initialize_mips_tdep): Ditto.
210 * monitor.c (monitor_open): Ditto.
211 * procfs.c (procfs_xfer_memory): Ditto.
212 * reverse.c (bookmarks_info): Ditto.
213 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
214 * stack.c (_initialize_stack): Ditto.
215 * tracepoint.c (_initialize_tracepoint): Ditto.
216 * xtensa-tdep.c (xtensa_supply_gregset,
217 xtensa_regset_from_core_section): Ditto.
218
219 2010-07-01 Tom Tromey <tromey@redhat.com>
220
221 * value.h (struct lval_funcs) <check_any_valid>: Rename from
222 check_all_valid.
223 * value.c (value_entirely_optimized_out): Invert result. Update
224 for new function name.
225
226 2010-07-01 Pedro Alves <pedro@codesourcery.com>
227
228 Static tracepoints support.
229
230 * NEWS: Mention new support for static tracepoints.
231 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
232 qXfer:statictrace:read.
233 (New features in the GDB remote stub, GDBserver): Mention static
234 tracepoints support using an UST based backend.
235 (New commands): Mention "info static-tracepoint-markers" and
236 "strace".
237 * breakpoint.c (is_marker_spec): New.
238 (is_tracepoint): Handle static tracepoints.
239 (validate_commands_for_breakpoint): Static tracepoints can't do
240 while-stepping.
241 (static_tracepoints_here): New.
242 (bpstat_what): Handle static tracepoints.
243 (print_one_breakpoint_location, allocate_bp_location, mention):
244 Ditto.
245 (create_breakpoint_sal): Ditto.
246 (decode_static_tracepoint_spec): New.
247 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
248 `type_wanted'. Adjust. Handle static tracepoint marker
249 locations.
250 (break_command_1): Adjust.
251 (update_static_tracepoint): New.
252 (update_breakpoint_locations): Handle static tracepoints.
253 (breakpoint_re_set_one): Handle static tracepoint marker
254 locations.
255 (disable_command, enable_command): Handle static tracepoints.
256 (trace_command, ftrace_command): Adjust.
257 (strace_command): New.
258 (create_tracepoint_from_upload): Adjust.
259 (save_breakpoints): Handle static tracepoints.
260 (_initialize_breakpoint): Install the "strace" command.
261 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
262 (struct breakpoint): New fields static_trace_marker_id and
263 static_trace_marker_id_idx.
264 (breakpoints_here_p): Declare.
265 (create_breakpoint): Adjust.
266 (static_tracepoints_here): Declare.
267 * remote.c (struct remote_state) <static_tracepoints>: New field.
268 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
269 (remote_static_tracepoint_marker_at): New.
270 (remote_static_tracepoint_markers_by_strid): New.
271 (remote_static_tracepoint_feature): New.
272 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
273 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
274 (remote_supports_static_tracepoints): New.
275 (remote_download_tracepoint): Download static tracepoints.
276 (init_remote_ops): Install remote_static_tracepoint_marker_at and
277 remote_static_tracepoint_markers_by_strid.
278 (_initialize_remote): Install set|show remote static-tracepoints,
279 and set|show remote read-sdata-object commands.
280 * target.c (update_current_target): Inherit and default
281 to_static_tracepoint_marker_at, and
282 to_static_tracepoint_markers_by_strid.
283 * target.h (static_tracepoint_marker): Forward declare.
284 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
285 (static_tracepoint_marker_p): New typedef.
286 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
287 (struct target_ops): New fields to_static_tracepoint_marker_at and
288 to_static_tracepoint_markers_by_strid.
289 (target_static_tracepoint_marker_at)
290 (target_static_tracepoint_markers_by_strid): New.
291 * tracepoint.c: Include source.h.
292 (validate_actionline): Handle $_sdata.
293 (struct collection_list): New field strace_data.
294 (add_static_trace_data): New.
295 (clear_collection_list): Clear strace_data.
296 (stringify_collection_list): Account for a possible static trace
297 data collection.
298 (encode_actions_1): Encode an $_sdata collection.
299 (parse_tracepoint_definition): Handle static tracepoints.
300 (parse_static_tracepoint_marker_definition): New.
301 (release_static_tracepoint_marker): New.
302 (print_one_static_tracepoint_marker): New.
303 (info_static_tracepoint_markers_command): New.
304 (sdata_make_value): New.
305 (_initialize_tracepoint): Create the $_sdata convenience variable.
306 Add the "info static-tracepoint-markers" command.
307 Mention $_sdata in the "collect" command's help output.
308 * tracepoint.h (struct static_tracepoint_marker): New.
309 (parse_static_tracepoint_marker_definition)
310 (release_static_tracepoint_marker): Declare.
311 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
312 * python/py-breakpoint.c (bppy_new): Adjust.
313
314 2010-06-30 Joel Brobecker <brobecker@adacore.com>
315
316 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
317 including Python.h.
318
319 2010-06-29 Doug Evans <dje@google.com>
320
321 PR gdb/11702
322 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
323 DW_AT_external is present.
324
325 PR gdb/11702
326 * NEWS: Add entry.
327 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
328 create a symbol for the field and record the value.
329 (new_symbol): Handle DW_TAG_member.
330 * gdbtypes.c (field_is_static): Remove FIXME.
331 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
332 only ignore LOC_CONST symbols that are enums.
333
334 * dwarf2read.c: Remove trailing whitespace.
335
336 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
337 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
338 (struct main_type, field loc): Delete dwarf_block.
339 (FIELD_DWARF_BLOCK): Delete.
340 (SET_FIELD_DWARF_BLOCK): Delete.
341 (TYPE_FIELD_DWARF_BLOCK): Delete.
342 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
343 Update.
344
345 2010-06-29 Hui Zhu <teawater@gmail.com>
346
347 * record.c (set_record_pic_cmdlist,
348 show_record_pic_cmdlist): New variables.
349 (set_record_pic_command,
350 show_record_pic_command): New functions.
351 (record_pic_function, record_pic_line, record_pic_enum,
352 set_record_pic_type, record_pic_hide_nofunction,
353 record_pic_hide_nosource, record_pic_hide_same): New variables.
354 (record_pic_fputs): New function.
355 (function_list, node_list, edge_list): New struct.
356 (function_list, node_list, edge_list): New variables.
357 (record_pic_cleanups, record_pic_node,
358 record_pic_edge, cmd_record_pic): New functions.
359 (_initialize_record): Add new commands for record pic.
360
361 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
362
363 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
364 ALLOCATE_CPLUS_STRUCT_TYPE.
365
366 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
367 Tom Tromey <tromey@redhat.com>
368 Thiago Jung Bauermann <bauerman@br.ibm.com>
369
370 * value.c (pack_unsigned_long): New function.
371 (value_from_ulongest): New function.
372 * value.h (value_from_ulongest): Declare.
373 * python/python.c (_initialize_python): Call
374 gdbpy_initialize_thread and gdbpy_initialize_inferior.
375 * python/python-internal.h: Define thread_object.
376 (gdbpy_inferiors, gdbpy_selected_thread)
377 (frame_info_to_frame_object, create_thread_object)
378 (find_thread_object, find_inferior_object)
379 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
380 (gdbpy_is_value_object, get_addr_from_python): Declare.
381 * python/py-value.c (builtin_type_upylong): Define.
382 (convert_value_from_python): Add logic for ulongest.
383 (gdbpy_is_value_object): New function.
384 * python/py-utils.c (get_addr_from_python): New function.
385 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
386 (gdbpy_selected_frame): Use PyObject over frame_info.
387 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
388 py-infthread.
389 (SUBDIR_PYTHON_SRCS): Likewise.
390 (py-inferior.o): New Rule.
391 (py-infthread.o): New Rule.
392 * python/py-inferior.c: New File.
393 * python/py-infthread.c: New File.
394
395 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 * c-typeprint.c (c_type_print_base): For no fields check include also
398 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
399 * dwarf2read.c (struct typedef_field_list)
400 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
401 (dwarf2_add_typedef): New.
402 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
403 Copy also FI.TYPEDEF_FIELD_LIST.
404 * gdbtypes.h (struct typedef_field)
405 (struct cplus_struct_type) <typedef_field, typedef_field_count>
406 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
407 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
408
409 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * cp-namespace.c (cp_lookup_nested_type): New variable
412 concatenated_name. Turn the current return condition into a reverse
413 one. Call also lookup_static_symbol_aux on the constructed qualified
414 name.
415 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
416 other files into a called ...
417 (lookup_static_symbol_aux): ... new function here.
418 * symtab.h (lookup_static_symbol_aux): New prototype.
419 * valops.c (value_maybe_namespace_elt): Call also
420 lookup_static_symbol_aux if we failed otherwise.
421
422 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 Fix PR c++/11703 and PR gdb/1448.
425 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
426 FIRST_ITER check.
427
428 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
429
430 Fix modification of cplus_struct_default.
431 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
432 Call ALLOCATE_CPLUS_STRUCT_TYPE.
433 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
434
435 2010-06-28 Joel Brobecker <brobecker@adacore.com>
436
437 * NEWS: Add entry announcing the python directory.
438
439 2010-06-28 Tom Tromey <tromey@redhat.com>
440
441 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
442
443 2010-06-28 Doug Evans <dje@google.com>
444
445 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
446 All callers updated.
447
448 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
451 obstack_begin after each obstack_free.
452
453 2010-06-27 Doug Evans <dje@google.com>
454
455 * value.c (value_static_field): Use `switch' instead of `if'.
456 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
457
458 * valops.c (search_struct_field): Fix typo in error message.
459
460 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
461
462 * dwarf2expr.c (execute_stack_op): Place preprocessor
463 directives at the start of the source line.
464
465 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
466
467 * defs.h (make_command_stats_cleanup): Declare.
468 (set_display_time): Declare.
469 (set_display_space): Declare.
470 * event-top.c (command_handler): Use make_command_stats_cleanup.
471 * main.c (display_time, display_space): Move definitions to utils.c.
472 (captured_main): Use make_command_stats_cleanup to get start-up
473 statistics.
474 Use set_display_time and set_display_space for processing OPT_STATISTICS
475 case.
476 * maint.c (maintenance_time_display): Use set_display_time.
477 (maintenance_space_display): Use set_display_space.
478 * top.c (execute_command): Remove obsolete 'maint time' code.
479 (command_loop): Use make_command_stats_cleanup.
480 * utils.c (struct cmd_stats): Structure for storing initial time
481 and space usage.
482 (display_time, display_space): Move definitions here from utils.c.
483 (set_display_time): New function.
484 (set_display_space): New function.
485 (make_command_stats_cleanup): New function.
486 (report_command_stats): New auxiliary function for
487 make_command_stats_cleanup.
488
489 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
490
491 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
492 hosts where CORE_ADDR is long long.
493
494 2010-06-25 Tom Tromey <tromey@redhat.com>
495
496 PR python/10808:
497 * python/python.c (execute_gdb_command): Add keywords. Accept
498 "to_string" argument.
499 (struct restore_ui_file_closure): New.
500 (restore_ui_file): New function.
501 (make_cleanup_restore_ui_file): Likewise.
502 (GdbMethods) <execute>: Update.
503
504 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
505
506 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
507 during inferior call stack frame setup.
508
509 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
510
511 * solib-spu.c: Include "exception.h".
512 (ocl_program_data_key): New variable.
513 (append_ocl_sos): New function.
514 (ocl_enable_break): Likewise.
515 (spu_current_sos): Call append_ocl_sos.
516 (spu_solib_loaded): Call ocl_enable_break.
517 (_initialize_spu_solib): Register ocl_program_data_key.
518
519 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
520
521 * cp-support.c (reset_directive_searched): New function.
522 (make_symbol_overload_list_using): Prevent recursive calls.
523
524 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
525
526 * printcmd.c (print_variable_and_value): Print error message on
527 caught exception.
528
529 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
530
531 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
532 of stack values.
533 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
534 "value" member.
535 (dwarf_expr_push): Change input type to ULONGEST.
536 (dwarf_expr_fetch): Change return type to ULONGEST.
537 (dwarf_expr_fetch_address): Add prototype.
538 (dwarf2_read_address): Remove prototype.
539 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
540 Truncate stack values to ctx->addr_size bytes.
541 (dwarf_expr_fetch): Change return value to ULONGEST.
542 (dwarf_expr_fetch_address): New function.
543 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
544 when appropriate. Update for struct dwarf_expr_piece changes.
545 (dwarf2_read_address): Remove.
546 (unsigned_address_type): Remove.
547 (signed_address_type): Remove.
548 (execute_stack_op): Use dwarf_expr_fetch_address instead of
549 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
550 values. Perform operations on ULONGEST instead of on GDB values,
551 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
552 values and DW_OP_deref results as unsigned integers.
553 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
554 changes.
555 (write_pieced_value): Likewise.
556 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
557 dwarf_expr_fetch when appropriate.
558 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
559 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
560 instead of dwarf_expr_fetch when appropriate.
561
562 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
563
564 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
565
566 2010-06-24 Joel Brobecker <brobecker@adacore.com>
567
568 * python/python.c (_initialize_python): Add new "constant"
569 PYTHONDIR in gdb module. Insert this path at the head of
570 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
571 exec its __init__.py script if it exists in that directory.
572
573 2010-06-24 Kevin Buettner <kevinb@redhat.com>
574
575 * rx-tdep.c (RX_ACC_REGNUM): Define.
576 (RX_NUM_REGS): Redefine to 26.
577 (rx_register_name): Add register "acc". Change order of several
578 registers. Change name of "vct" register to "fintv" to match RX
579 documentation.
580 (rx_register_type): Add case for RX_ACC_REGNUM.
581
582 2010-06-24 Tom Tromey <tromey@redhat.com>
583
584 * psymtab.c (lookup_partial_symbol): Mark definition as static.
585
586 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
587 Tom Tromey <tromey@redhat.com>
588
589 Fix GDB startup on readonly filesystem.
590 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
591
592 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
593 Pedro Alves <pedro@codesourcery.com>
594
595 Fix PR 9436.
596 * breakpoint.c (handle_jit_event): New function.
597 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
598 jit, err, table and bs_class. New variables shlib_event, jit_event,
599 this_action and bptype. Change bs_class assignments to this_action
600 assignments. new unhandled bptype internal error. Move here
601 shlib_event and jit_event handling from handle_inferior_event.
602 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
603 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
604 BPSTAT_WHAT_CHECK_JIT.
605 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
606 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
607 (handle_inferior_event): Reinitialize frame and gdbarch after
608 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
609 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
610 gdbarch when frame gets reinitialized.
611
612 2010-06-24 Hui Zhu <teawater@gmail.com>
613
614 * printcmd.c (ui_printf): New function.
615 (printf_command): Call ui_printf.
616 (_initialize_printcmd): New command "eval".
617
618 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
619
620 * infrun.c (handle_inferior_event): Handle presence of single-step
621 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
622 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
623 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
624 * breakpoint.c (detach_single_step_breakpoints): New function.
625 (detach_breakpoints): Call it.
626 (cancel_single_step_breakpoints): New function.
627 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
628
629 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
630 (spu_gdbarch_init): Install it.
631
632 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
635 * configure: Regenerate.
636
637 2010-06-22 Hui Zhu <teawater@gmail.com>
638
639 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
640 (i386_process_record): Ditto.
641 * record.c (record_memory_query): New variable.
642 (_initialize_record): New command "set record memory-query".
643 * record.h (record_memory_query): New extern.
644
645 2010-06-21 Doug Evans <dje@google.com>
646
647 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
648 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
649 (i386_syscall_p): Change type of lengthp to int.
650 (i386_displaced_step_fixup): Handle kernels that run one past a
651 syscall insn.
652 * i386-linux-tdep.c (i386_linux_init_abi): Use
653 i386_displaced_step_copy_insn instead of
654 simple_displaced_step_copy_insn.
655
656 2010-06-21 Tom Tromey <tromey@redhat.com>
657
658 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
659 (dwarf_type_encoding_name): Likewise.
660
661 2010-06-21 Tom Tromey <tromey@redhat.com>
662
663 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
664 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
665 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
666 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
667 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
668 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
669 * dwarf2read.c (tag_type_to_type): Create a new error type on
670 failure.
671 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
672 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
673
674 2010-06-21 Michael Snyder <msnyder@vmware.com>
675
676 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
677 not add_abbrev_prefix_cmd, for "enable breakpoints".
678
679 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
680
681 * dwarf2loc.c (find_location_expression): Add relocation offset
682 to base-address-selection entry base addresses. Read addresses
683 (and offsets) as signed/unsigned integers, depending on the
684 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
685 (loclist_describe_location): Likewise.
686 (disassemble_dwarf_expression): Read DW_OP_addr operand as
687 unsigned integer. Do not call dwarf2_read_address.
688 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
689
690 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
691
692 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
693 value instead of hard-coded SPU_LS_SIZE.
694 (spu_software_single_step): Likewise.
695 * spu-tdep.h (SPU_LS_SIZE): Remove.
696
697 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
698
699 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
700 limit on local store memory accesses.
701 * spu-linux-nat.c (spu_xfer_partial): Likewise.
702 * spu-tdep.c (spu_lslr): Remove.
703 (spu_pointer_to_address): Do not truncate addresses.
704 (spu_integer_to_address): Likewise.
705 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
706 * spu-tdep.h: Add comments.
707 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
708 (SPU_OVERLAY_LMA): Define.
709
710 2010-06-18 Stan Shebs <stan@codesourcery.com>
711
712 * osdata.c (get_osdata): Warn separately if target does not report
713 type list.
714 (info_osdata_command): Allow empty type, report error if target
715 does not return available types of OS data.
716 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
717 types if no annex supplied.
718
719 * thread.c (thread_id_make_value): Make a value representing the
720 current thread.
721 (_initialize_thread): Create $_thread.
722
723 2010-06-17 Joel Brobecker <brobecker@adacore.com>
724
725 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
726 last local variable declaration. No real code change.
727
728 2010-06-17 Tom Tromey <tromey@redhat.com>
729
730 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
731 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
732 temporary obstack.
733
734 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
735 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 * breakpoint.c: Include parser-defs.h.
738 (watchpoint_exp_is_const): New function.
739 (watch_command_1): Call watchpoint_exp_is_const to check
740 if the expression is constant.
741
742 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
743
744 * configure.ac: Check for RDYNAMIC also for cross builds.
745 * configure: Regenerate.
746
747 2010-06-15 Pedro Alves <pedro@codesourcery.com>
748
749 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
750 (SFILES): Remove solib-null.c, add solib-target.c.
751 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
752 (ALLDEPFILES): Remove solib-target.c.
753 * solib-target.c (_initialize_solib_target): Set
754 current_target_so_ops to solib_target_so_ops if not already set.
755 * solib-null.c: Delete.
756
757 2010-06-14 Pedro Alves <pedro@codesourcery.com>
758
759 * NEWS: Mention GDBserver's JIT compilation of tracepoint
760 bytecode.
761
762 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
763
764 * cp-valprint.c (cp_print_static_field): Members of
765 dont_print_stat_array_obstack are of type "struct type *".
766 (_initialize_cp_valprint): Likewise.
767
768 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
769
770 * frame.c (frame_register_unwind): Do not access contents
771 of "optimized out" unwound register value.
772
773 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
774
775 * ada-lang.h (ada_print_type): Make varstring const.
776 * ada-typeprint.c (print_func_type): Make name const.
777 (ada_print_type): Make varstring const.
778 * c-lang.h (c_print_type): Make varstring const.
779 * c-typeprint.c (c_print_type): Likewise.
780 * f-lang.h (f_print_type): Likewise.
781 * f-typeprint.c (f_print_type): Likewise.
782 * jv-lang.h (java_print_type): Likewise.
783 * jv-typeprint.c (java_print_type): Likewise.
784 * language.c (unk_lang_print_type): Likewise.
785 * language.h (struct language_defn) <la_print_type>: Likewise.
786 * m2-lang.h (m2_print_type): Likewise.
787 * m2-typeprint.c (m2_print_type): Likewise.
788 * p-lang.h (pascal_print_type): Likewise.
789 * p-typeprint.c (pascal_print_type): Likewise.
790
791 2010-06-11 Stan Shebs <stan@codesourcery.com>
792
793 Add per-operation permission flags.
794
795 * target.h (struct target_ops): New method to_set_permissions.
796 (target_set_permissions): New macro.
797 (target_insert_breakpoint): Change macro to function.
798 (target_remove_breakpoint): Ditto.
799 (target_stop): Ditto.
800 (may_write_registers): Declare.
801 (may_write_memory): Declare.
802 (may_insert_breakpoints): Declare.
803 (may_insert_tracepoints): Declare.
804 (may_insert_fast_tracepoints): Declare.
805 (may_stop): Declare.
806 * target.c (may_write_registers, may_write_registers_1): New globals.
807 (may_write_memory, may_write_memory_1): New globals.
808 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
809 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
810 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
811 globals.
812 (may_stop, may_stop_1): New global.
813 (target_xfer_partial): Test for write permission.
814 (target_store_registers): Ditto.
815 (target_insert_breakpoint): New function.
816 (target_remove_breakpoint): New function.
817 (target_stop): New function.
818 (_initialize_targets): Add new set/show variables.
819 (set_write_memory_permission): New function.
820 (update_target_permissions): New function.
821 (set_target_permissions): New function.
822 (update_current_target): Default to_set_permissions.
823 (_initialize_targets): Use new globals and setter function.
824 * tracepoint.c (start_tracing): Test for permission.
825 * inferior.h (update_observer_mode): Declare.
826 * infrun.c (non_stop_1): Define earlier.
827 (observer_mode, observer_mode_1): New globals.
828 (set_observer_mode, show_observer_mode): New functions.
829 (update_observer_mode): New function.
830 (_initialize_infrun): Define "set observer" command.
831 * remote.c (PACKET_QAllow): New optional packet.
832 (remote_protocol_features): Add QAllow.
833 (remote_set_permissions): New function.
834 (remote_start_remote): Call it.
835 (init_remote_ops): Add it to target vector.
836 (_initialize_remote): Add config command for QAllow.
837
838 2010-06-11 Tom Tromey <tromey@redhat.com>
839
840 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
841 DW_AT_vtable_elem_location even when GCC extension is seen.
842
843 2010-06-11 Tom Tromey <tromey@redhat.com>
844
845 PR gdb/9977, PR exp/11636:
846 * value.h (value_offset): Update.
847 (struct lval_funcs) <check_validity>: New field.
848 <copy_closure>: Make argument const.
849 (value_computed_closure): Update.
850 (value_contents_for_printing): Declare.
851 (value_bits_valid): Likewise.
852 (val_print): Likewise.
853 (set_value_component_location): Update.
854 (value_entirely_optimized_out): Declare.
855 * value.c (value_offset): Argument now const.
856 (require_not_optimized_out): New function.
857 (value_contents_for_printing): New function.
858 (value_contents_all): Call require_not_optimized_out.
859 (value_contents): Likewise.
860 (value_bits_valid): New function.
861 (value_computed_closure): Argument now const.
862 (set_value_component_location): Make 'whole' argument const.
863 (value_entirely_optimized_out): New function.
864 (value_bitsize): Argument now 'const'.
865 (value_bitpos): Likewise.
866 (value_type): Likewise.
867 * valprint.h (val_print_array_elements): Update.
868 * valprint.c (val_print): Add 'val' argument. Use
869 valprint_check_validity.
870 (valprint_check_validity): New function.
871 (value_check_printable): Use value_entirely_optimized_out.
872 (common_val_print): Update.
873 (value_print): Likewise.
874 (val_print_array_elements): Add 'val' argument.
875 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
876 value_bits_valid. Reinit frame cache for lval_computed.
877 * sh64-tdep.c (sh64_do_register): Update.
878 * scm-valprint.c (scm_val_print): Add 'val' argument.
879 * scm-lang.h (scm_val_print): Update.
880 * python/python.h (apply_val_pretty_printer): Update.
881 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
882 argument. Call set_value_component_location.
883 * printcmd.c (print_scalar_formatted): Update.
884 * p-valprint.c (pascal_val_print): Add 'val' argument.
885 (pascal_object_print_value_fields): Likewise.
886 (pascal_object_print_value): Likewise.
887 (pascal_object_print_static_field): Update.
888 * p-lang.h (pascal_val_print): Update.
889 (pascal_object_print_value_fields): Update.
890 * mt-tdep.c (mt_registers_info): Update.
891 * mi/mi-main.c (get_register): Update.
892 (mi_cmd_data_evaluate_expression): Use common_val_print.
893 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
894 (m2_print_unbounded_array): Likewise.
895 (m2_val_print): Likewise.
896 * m2-lang.h (m2_val_print): Update.
897 * language.h (struct language_defn) <la_val_print>: Add 'val'
898 argument.
899 (LA_VAL_PRINT): Likewise.
900 * language.c (unk_lang_val_print): Add 'val' argument.
901 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
902 (java_val_print): Likewise.
903 * jv-lang.h (java_val_print): Add 'val' argument.
904 * infcmd.c (default_print_registers_info): Update.
905 * f-valprint.c (f77_print_array_1): Add 'val' argument.
906 (f77_print_array): Likewise.
907 (f_val_print): Likewise.
908 * f-lang.h (f_val_print): Add 'val' argument.
909 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
910 value_bitpos.
911 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
912 set_value_optimized_out.
913 (write_pieced_value): Use value_bitsize and value_bitpos.
914 <default>: Don't exit loop.
915 (check_pieced_value_validity): New function.
916 (pieced_value_funcs): Reference check_pieced_value_validity,
917 check_pieced_value_invalid.
918 (copy_pieced_value_closure): Update.
919 (check_pieced_value_bits): New function.
920 (check_pieced_value_invalid): New function.
921 * d-valprint.c (dynamic_array_type): Add 'val' argument.
922 (d_val_print): Likewise.
923 * d-lang.h (d_val_print): Update.
924 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
925 (cp_print_value_fields_rtti): Likewise.
926 (cp_print_value): Likewise.
927 (cp_print_static_field): Update.
928 * c-valprint.c (c_val_print): Add 'val' argument.
929 (c_value_print): Update.
930 * c-lang.h (c_val_print): Update.
931 (cp_print_value_fields): Likewise.
932 (cp_print_value_fields_rtti): Likewise.
933 * ada-valprint.c (struct ada_val_print_args): Remove.
934 (val_print_packed_array_elements): Add 'val' argument.
935 (ada_val_print): Likewise. Rewrite.
936 (ada_val_print_stub): Remove.
937 (ada_val_print_array): Add 'val' argument.
938 (ada_val_print_1): Likewise.
939 (print_variant_part): Likewise.
940 (ada_value_print): Update.
941 (print_record): Add 'val' argument.
942 (print_field_values): Likewise.
943 * ada-lang.h (ada_val_print): Update.
944
945 2010-06-11 Tom Tromey <tromey@redhat.com>
946
947 * vec.h (VEC_cleanup): New macro.
948 (DEF_VEC_ALLOC_FUNC_I): Update.
949 (DEF_VEC_ALLOC_FUNC_P): Likewise.
950 (DEF_VEC_ALLOC_FUNC_O): Likewise.
951 * dwarf2loc.c (struct axs_var_loc): Remove.
952 (unimplemented): New function.
953 (translate_register): Likewise.
954 (access_memory): Likewise.
955 (compile_dwarf_to_ax): Likewise.
956 (dwarf2_tracepoint_var_loc): Remove.
957 (dwarf2_tracepoint_var_access): Likewise.
958 (dwarf2_tracepoint_var_ref): Likewise.
959 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
960 (loclist_tracepoint_var_ref): Likewise.
961 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
962 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
963 require_composition. No longer static.
964 (execute_stack_op): Update.
965 * ax-gdb.h (trace_kludge): Declare.
966
967 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
970 (should_be_inserted): Return zero also on NULL OWNER.
971 (breakpoint_program_space_exit): New OWNER comment.
972 (insert_breakpoint_locations): Extend comment for OWNER.
973 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
974 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
975 New OWNER comment.
976 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
977 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
978 (bpstat_check_location): New assert on OWNER.
979 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
980 and B initializations to the code block. New assert on them.
981 (print_one_breakpoint_location): New OWNER comment.
982 (watchpoint_locations_match): Assert on OWNER.
983 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
984 initializations to the code block. New assert on OWNER.
985 (set_breakpoint_location_function): New assert on OWNER.
986 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
987 (bp_location_compare, update_global_location_list)
988 (update_global_location_list): New OWNER comment.
989
990 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
991
992 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
993
994 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
995
996 * config/nm-linux.h (struct target_ops): Remove forward declaration.
997 (lin_thread_get_thread_signals): Remove prototype.
998 (GET_THREAD_SIGNALS): Remove.
999 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
1000 * linux-thread-db.c (check_thread_signals): Directly call
1001 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
1002
1003 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1004
1005 * gregset.h (GDB_FPXREGSET_T): Remove.
1006 (gdb_fpxregset_t): Likewise.
1007 (supply_fpxregset): Remove prototype.
1008 (fill_fpxregset): Likewise.
1009 * i386-linux-nat.c (supply_fpxregset): Remove.
1010 (fill_fpxregset): Likewise.
1011 (fetch_fpxregs): Inline supply_fpxregset call.
1012 (store_fpxregs): Inline fill_fpxregset call.
1013
1014 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
1015 * config/i386/nm-linux.h: Remove file.
1016
1017 2010-06-09 Michael Snyder <msnyder@vmware.com>
1018
1019 * target.c (update_current_target): Fix spelling error in comment.
1020 (target_mourn_inferior): Fix spelling error in error message.
1021
1022 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
1023
1024 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
1025 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
1026
1027 2010-06-08 Michael Snyder <msnyder@vmware.com>
1028
1029 * remote.c (remote_close): Set inferior_ptid to null_ptid.
1030
1031 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1032
1033 * configure.ac <"${have_libpython}" != no>: New workaround of
1034 python#4434.
1035 * configure: Regenerate.
1036
1037 2010-06-08 Hui Zhu <teawater@gmail.com>
1038
1039 * record.c (record_wait): Move signal out of replay code.
1040
1041 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 Fix PR 10640.
1044 * dwarf2-frame.c (no_dwarf_call): New function.
1045 (execute_stack_op): Set CTX->DWARF_CALL.
1046 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
1047 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
1048 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
1049 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
1050 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
1051 (needs_frame_dwarf_call): New function.
1052 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
1053 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
1054 Update the comment. Move variables die, offset and error call to ...
1055 (follow_die_ref): ... a new function.
1056 (dwarf2_fetch_die_location_block): New function.
1057 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
1058
1059 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
1062 (dwarf_expr_tls_address): Use per_cu instead of objfile.
1063 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
1064 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
1065 this change.
1066 (struct needs_frame_baton): New field per_cu.
1067 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
1068 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
1069
1070 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1071
1072 * cp-support.c (make_symbol_overload_list_namespace): Only search
1073 static and global blocks.
1074 (make_symbol_overload_list_block): New function.
1075 (make_symbol_overload_list): Separate namespace search from block
1076 search.
1077 (make_symbol_overload_list_qualified): Use
1078 make_symbol_overload_list_block.
1079
1080 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1081
1082 * value.h: Created oload_search_type enum.
1083 (find_overload_match): Use oload_search_type enum.
1084 * valops.c (find_overload_match): Support combined member and
1085 non-member search.
1086 * eval.c (evaluate_subexp_standard): Calls to
1087 find_overload_match now use oload_search_type enum.
1088 (oload_method_static): Verify index is a proper value.
1089 * valarith.c (value_user_defined_cpp_op): Search for and handle
1090 both member and non-member operators.
1091 (value_user_defined_cpp_op): New function.
1092 (value_user_defined_op): New function.
1093 (value_x_unop): Use value_user_defined_op.
1094 (value_x_binop): Ditto.
1095 * cp-support.c (make_symbol_overload_list_using): Added block
1096 iteration.
1097 Add check for namespace aliases and imported declarations.
1098
1099 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1100
1101 * breakpoint.h (owner): Extend the comment.
1102
1103 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1104
1105 Clear stale specific bp_location from former whole breakpoint.
1106 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
1107 code ...
1108 (free_bp_location): ... here. Rename there the called function to
1109 bpstat_remove_bp_location_callback.
1110 (bpstat_remove_breakpoint_callback): Rename to ...
1111 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1112 to struct bp_location. Change the called function to
1113 bpstat_remove_bp_location. Create new declaration for the function.
1114 (bpstat_remove_breakpoint): Rename to ...
1115 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1116 code for the new parameter type.
1117
1118 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
1119
1120 * README: Make version-agnostic.
1121
1122 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1123
1124 Fix duplicate types for single DIE.
1125 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1126 set_die_type.
1127 (read_array_type): Remove type initialization. Recheck get_die_type
1128 after initial die_type. Move set_die_type before set_descriptive_type.
1129 (read_set_type): New variable domain_type. Recheck get_die_type after
1130 initial die_type. Move attr initialization later.
1131 (read_tag_pointer_type, read_tag_reference_type): New variable
1132 target_type. Recheck get_die_type after initial die_type.
1133 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1134 die_type and die_containing_type.
1135 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1136 Recheck get_die_type after initial die_type.
1137 (read_subrange_type): Recheck get_die_type after initial die_type.
1138 Move set_die_type before set_descriptive_type.
1139 (set_die_type): Extend the function comment. Call complaint if DIE has
1140 some type already set.
1141
1142 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1143
1144 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1145 for current naming of thread groups (iN, not N).
1146
1147 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1148
1149 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1150 * parse.c (operator_length): Likewise.
1151 (operator_length_standard): Likewise.
1152 * parser-defs.h (operator_length): Likewise.
1153 (operator_length_standard): Likewise.
1154 (struct exp_descriptor <operator_length>): Likewise.
1155
1156 2010-06-04 Doug Evans <dje@google.com>
1157
1158 Add support for enabling/disabling individual pretty-printers.
1159 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1160 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1161 * python/python.c (gdbpy_enabled_cst): Define.
1162 (_initialize_python): Initialize gdbpy_enabled_cst.
1163 * NEWS: Add entry.
1164
1165 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1166
1167 * breakpoint.c (update_global_location_list): Fix comment typo.
1168
1169 2010-06-04 Hui Zhu <teawater@gmail.com>
1170
1171 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1172
1173 2010-06-03 Doug Evans <dje@google.com>
1174
1175 * configure.ac: Don't fail if python is unusable when
1176 configured with --with-python=auto.
1177 * configure: Regenerate.
1178
1179 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1180
1181 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1182
1183 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1184
1185 * valprint.h (get_array_bounds): Change low and high parameter types
1186 to LONGEST *.
1187 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
1188 compute bounds.
1189 (val_print_array_elements): Adapt to change above.
1190 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1191 * p-valprint.c (pascal_val_print): Likewise.
1192
1193 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1194
1195 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1196 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1197 .F08.
1198
1199 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 Support DW_TAG_module as separate namespaces.
1202 * dwarf2read.c (typename_concat): New parameter physname.
1203 (read_module_type): New function and declaration.
1204 (scan_partial_symbols): Scan also DW_TAG_module children.
1205 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1206 to typename_concat backward compatible physname value 0.
1207 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1208 backward compatible physname value 0.
1209 (add_partial_module, read_module): Remove FIXME comment.
1210 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1211 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1212 DIEs under DW_TAG_module.
1213 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1214 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1215 && physname and return there instead of just setting NAME. Extend
1216 the main block for language_fortran. Pass physname parameter to the
1217 typename_concat call.
1218 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1219 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1220 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1221 missing from SYMBOL_SET_NAMES in the language_fortran case.
1222 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1223 variables.
1224 (read_type_die) <DW_TAG_module>: New.
1225 (MAX_SEP_LEN): Increase to 7.
1226 (typename_concat): New parameter physname. New variable lead. Support
1227 also language_fortran.
1228 * f-exp.y (yylex): Consider : also as a symbol name character class.
1229 * f-lang.c: Include cp-support.h.
1230 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1231 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1232 f_word_break_characters and f_make_symbol_completion_list.
1233 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1234 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1235 * symtab.c (symbol_init_language_specific): Support language_fortran.
1236 (symbol_find_demangled_name): New comment on language_fortran.
1237 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1238 for language_fortran.
1239 (lookup_symbol_aux_local): Check imports also for language_fortran.
1240 (default_make_symbol_completion_list): Rename to ...
1241 (default_make_symbol_completion_list_break_on): ... this name. New
1242 parameter break_on, use it.
1243 (default_make_symbol_completion_list): New stub.
1244 * symtab.h (default_make_symbol_completion_list_break_on): New
1245 prototype.
1246
1247 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1248
1249 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1250 to error.
1251
1252 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 * dwarf2read.c (typename_concat): Add const to the variable sep.
1255
1256 2010-06-02 Tom Tromey <tromey@redhat.com>
1257
1258 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1259 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1260 type is const. Add 'def' argument. Add missing operators, remove
1261 unhandled ones.
1262 (decode_locdesc): Update.
1263 (dwarf2_always_disassemble): New global.
1264 (show_dwarf2_always_disassemble): New function.
1265 (_initialize_dwarf2_read): Add always-disassemble.
1266 (dwarf2_per_cu_offset_size): New function.
1267 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1268 (piece_end_p): New function.
1269 (locexpr_describe_location_piece): Replace 'size' argument with
1270 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1271 some constants. Remove errors.
1272 (disassemble_dwarf_expression): New function.
1273 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1274 Add 'offset_size' argument.
1275 (loclist_describe_location): Change output formatting.
1276 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1277
1278 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1279
1280 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1281 anonymous type case.
1282
1283 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1284
1285 * dwarf2read.c (read_subrange_type): Handle missing base type
1286 according to Dwarf-2 specifications.
1287
1288 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1289
1290 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1291 BINOP_EXCL.
1292 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1293 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1294 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1295 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1296 UNOP_CHMAX, UNOP_CHMIN.
1297 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1298 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1299 UNOP_CHMIN>: Remove opcodes.
1300
1301 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1302
1303 * dwarf2read.c (read_func_scope): Do not complain for
1304 external function if bounds are not found.
1305
1306 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1307
1308 * NEWS: Mention gdbserver fast tracepoints support.
1309
1310 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1311
1312 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1313 New macros.
1314 (windows_set_console_info): New function.
1315 (windows_create_inferior): Call windows_set_console_info
1316 if NEW_CONSOLE is true.
1317 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1318 (_initialize_loadable): Initialize GetConsoleFontSize and
1319 GetCurrentConsoleFont.
1320
1321 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1322
1323 * Makefile.in (RDYNAMIC): New.
1324 (SFILES): Add proc-service.list.
1325 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1326 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1327 * config/arm/linux.mh: Likewise.
1328 * config/i386/linux.mh: Likewise.
1329 * config/i386/linux64.mh: Likewise.
1330 * config/ia64/linux.mh: Likewise.
1331 * config/m32r/linux.mh: Likewise.
1332 * config/m68k/linux.mh: Likewise.
1333 * config/mips/linux.mh: Likewise.
1334 * config/pa/linux.mh: Likewise.
1335 * config/powerpc/linux.mh: Likewise.
1336 * config/powerpc/ppc64-linux.mh: Likewise.
1337 * config/s390/s390.mh: Likewise.
1338 * config/sparc/linux.mh: Likewise.
1339 * config/sparc/linux64.mh: Likewise.
1340 * config/xtensa/linux.mh: Likewise.
1341 * configure.ac: New RDYNAMIC on native host and GCC.
1342 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1343 * configure: Regenerate.
1344 * proc-service.list: New.
1345
1346 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1347
1348 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1349 CONTENT.
1350
1351 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 * linux-nat.c (linux_nat_wait_1): Do not call
1354 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1355 TARGET_WAITKIND_SIGNALLED.
1356
1357 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1358
1359 * ada-lang.c (ada_inferior_data): New struct.
1360 (ada_inferior_data): New static global.
1361 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1362 (ada_get_tsd_type): New functions.
1363 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1364 to look the tsd type up.
1365 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1366 event. Set ada_inferior_data.
1367
1368 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1369
1370 * remote.c (unpack_varlen_hex): Remove forward declaration.
1371 (remote_console_output): Make static, and add forward declaration.
1372 * remote.h: Drop FIXME comment.
1373 (unpack_varlen_hex): Declare.
1374 (remote_console_output, remote_cisco_objfile_relocate)
1375 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1376 Delete declarations.
1377 * tracepoint.c: Include "remote.h".
1378 (unpack_varlen_hex): Delete declaration.
1379
1380 2010-05-27 Tom Tromey <tromey@redhat.com>
1381
1382 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1383 (allocate_piece_closure): Initialize refc.
1384 (copy_pieced_value_closure): Use refc.
1385 (free_pieced_value_closure): Likewise.
1386
1387 2010-05-27 Tom Tromey <tromey@redhat.com>
1388
1389 * arm-tdep.c (push_stack_item): 'contents' now const.
1390 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1391 value_contents_writeable. Introduce new temporary.
1392
1393 2010-05-27 Tom Tromey <tromey@redhat.com>
1394
1395 * findcmd.c (parse_find_args): Use value_contents, not
1396 value_contents_raw.
1397
1398 2010-05-27 Tom Tromey <tromey@redhat.com>
1399
1400 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1401 const. Use value_contents, not value_contents_writeable.
1402
1403 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1404
1405 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1406 by call to value_contents.
1407
1408 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1409
1410 * MAINTAINERS: Add myself for write after approval privileges.
1411
1412 2010-05-26 Doug Evans <dje@google.com>
1413
1414 Allow python to find its files if moved from original location.
1415 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1416 (GDB_AC_WITH_DIR): Call it.
1417 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1418 python installation directory.
1419 * config.in: Regenerate.
1420 * configure: Regenerate.
1421 * defs.h (python_libdir): Declare.
1422 * main.c (python_libdir): Define.
1423 (captured_main): Initialize python_libdir.
1424 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1425 call Py_SetProgramName to make sure python can find its libraries
1426 and modules.
1427
1428 * configure.ac: Try to use python's distutils to fetch compilation
1429 parameters.
1430 * configure: Regenerate.
1431 * python/python-config.py: New file.
1432
1433 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1434
1435 * ser-tcp.c (net_open): Check error return from socket() call by its
1436 equality to -1 not by it being negative.
1437 (net_close): Likewise.
1438
1439 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1440
1441 * NEWS: Mention the `qRelocInsn' feature.
1442 * gdbarch.sh (relocate_instruction): New.
1443 * amd64-tdep.c (rip_relative_offset): New.
1444 (append_insns): New.
1445 (amd64_relocate_instruction): New.
1446 (amd64_init_abi): Install it.
1447 * i386-tdep.c (append_insns): New.
1448 (i386_relocate_instruction): New.
1449 (i386_gdbarch_init): Install it.
1450 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1451 * gdbarch.h, gdbarch.c: Regenerate.
1452
1453 2010-05-26 Tom Tromey <tromey@redhat.com>
1454
1455 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1456 (struct dwarf2_loclist_baton) <data>: Likewise.
1457 * dwarf2loc.c (find_location_expression): Constify return type.
1458 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1459 (dwarf2_loc_desc_needs_frame): Likewise.
1460 (loclist_read_variable): Constify.
1461 (loclist_describe_location): Likewise.
1462 (loclist_tracepoint_var_ref): Likewise.
1463
1464 2010-05-25 Tom Tromey <tromey@redhat.com>
1465
1466 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1467 (dwarf_expr_frame_base_1): Likewise.
1468 (read_pieced_value): Update.
1469 (needs_frame_frame_base): Constify.
1470 (dwarf2_tracepoint_var_loc): Likewise.
1471 (dwarf2_tracepoint_var_access): Likewise.
1472 (locexpr_describe_location_piece): Likewise.
1473 (locexpr_describe_location_1): Likewise.
1474 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1475 Constify.
1476 (data): Now const.
1477 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1478 (dwarf_expr_eval, read_uleb128, read_sleb128)
1479 (dwarf2_read_address): Update.
1480 * dwarf2expr.c (dwarf_expr_eval): Constify.
1481 (read_uleb128): Likewise.
1482 (read_sleb128): Likewise.
1483 (dwarf2_read_address): Likewise.
1484 (require_composition): Likewise.
1485 (execute_stack_op): Likewise.
1486 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1487 "const gdb_byte *".
1488 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1489 Now const.
1490 (no_get_frame_base): Constify.
1491 (execute_stack_op): Likewise.
1492 (execute_cfa_program): Likewise.
1493 (read_encoded_value): Likewise.
1494
1495 2010-05-25 Doug Evans <dje@google.com>
1496
1497 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1498
1499 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1500 * event-loop.c: ... here.
1501 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1502 `error' for clarity.
1503 (tui_getc): Pass correct value for `error' parameter to
1504 tui_readline_output.
1505
1506 Add python gdb.GdbError and gdb.string_to_argv.
1507 * NEWS: Document them.
1508 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1509 the exception is gdb.GdbError. Print a second traceback if there's
1510 an error computing the error message.
1511 (gdbpy_string_to_argv): New function.
1512 * python/py-utils.c (gdbpy_obj_to_string): New function.
1513 (gdbpy_exception_to_string): New function.
1514 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1515 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1516 (gdbpy_gdberror_exc): Declare.
1517 * python/python.c (gdbpy_gdberror_exc): New global.
1518 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1519 gdb.GdbError.
1520 (GdbMethods): Add string_to_argv.
1521
1522 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1523
1524 * windows-nat.c (display_selector): Call GetLastError to give better
1525 failure explanation.
1526
1527 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1528
1529 * config.in: Regenerate.
1530
1531 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 Code cleanup.
1534 * target.c (push_target): Return only void. Remove the return value
1535 comment.
1536 * target.h (push_target): Return only void.
1537
1538 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1539
1540 Update gnulib from latest git.
1541 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1542
1543 * gnulib/memcmp.c: Removed.
1544 * gnulib/memchr.valgrind: New.
1545 * gnulib/stddef.in.h: New.
1546 * gnulib/Makefile.am: Updated.
1547 * gnulib/memchr.c: Updated.
1548 * gnulib/memmem.c: Updated.
1549 * gnulib/stdint.in.h: Updated.
1550 * gnulib/str-two-way.h: Updated.
1551 * gnulib/string.in.h: Updated.
1552 * gnulib/wchar.in.h: Updated.
1553
1554 * gnulib/extra/link-warning.h: Removed.
1555 * gnulib/extra/c++defs.h: New.
1556 * gnulib/extra/warn-on-use.h: New.
1557 * gnulib/extra/arg-nonnull.h: Updated.
1558
1559 * gnulib/m4/extensions.m4: Updated.
1560 * gnulib/m4/gnulib-cache.m4: Updated.
1561 * gnulib/m4/gnulib-common.m4: Updated.
1562 * gnulib/m4/gnulib-comp.m4: Updated.
1563 * gnulib/m4/gnulib-tool.m4: Updated.
1564 * gnulib/m4/include_next.m4: Updated.
1565 * gnulib/m4/longlong.m4: Updated.
1566 * gnulib/m4/memchr.m4: Updated.
1567 * gnulib/m4/memmem.m4: Updated.
1568 * gnulib/m4/stdint.m4: Updated.
1569 * gnulib/m4/string_h.m4: Updated.
1570 * gnulib/m4/memcmp.m4: Removed.
1571 * gnulib/m4/onceonly_2_57.m4: Removed.
1572 * gnulib/m4/00gnulib.m4: New.
1573 * gnulib/m4/mmap-anon.m4: New.
1574 * gnulib/m4/multiarch.m4: New.
1575 * gnulib/m4/onceonly.m4: New.
1576 * gnulib/m4/stddef_h.m4: New.
1577 * gnulib/m4/warn-on-use.m4: New.
1578 * gnulib/m4/wchar.m4: Removed.
1579 * gnulib/m4/wchar_h.m4: New.
1580 * gnulib/m4/wchar_t.m4: New.
1581 * gnulib/m4/wint_t.m4: New.
1582
1583 * aclocal.m4: Regenerate.
1584 * config.in: Likewise.
1585 * configure: Likewise.
1586 * gnulib/Makefile.in: Likewise.
1587
1588 2010-05-21 Tom Tromey <tromey@redhat.com>
1589
1590 * dwarf2loc.c (extract_bits_primitive): New function.
1591 (extract_bits): Likewise.
1592 (insert_bits): Likewise.
1593 (copy_bitwise): Likewise.
1594 (read_pieced_value): Do all operations in bits.
1595 (write_pieced_value): Likewise.
1596 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1597 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1598 Always use xrealloc to resize piece array.
1599 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1600 <DW_OP_piece>: Update.
1601 <DW_OP_bit_piece>: New case.
1602
1603 2010-05-21 Tom Tromey <tromey@redhat.com>
1604
1605 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1606 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1607 * dwarf2expr.h (enum dwarf_value_location)
1608 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1609 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1610 (add_piece): Handle empty piece.
1611 (execute_stack_op) <DW_OP_piece>: Handle
1612 DWARF_VALUE_OPTIMIZED_OUT.
1613
1614 2010-05-21 Tom Tromey <tromey@redhat.com>
1615
1616 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1617 evaluate_subexp, not evaluate_subexp_with_coercion.
1618
1619 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1620
1621 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1622 attribute.
1623
1624 2010-05-21 Tom Tromey <tromey@redhat.com>
1625
1626 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1627 offset.
1628 (write_pieced_value): Likewise.
1629
1630 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1631
1632 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1633 and DW_TAG_volatile_type.
1634 (new_symbol): Likewise.
1635
1636 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1637
1638 * p-valprint.c (pascal_val_print): Call get_array_bounds
1639 to obtain the number of elements in an array.
1640
1641 2010-05-19 Doug Evans <dje@google.com>
1642
1643 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1644
1645 * python.c (source_python_script): Add comment.
1646 (source_python_script_for_objfile): Remove unnecessary call to
1647 gdbpy_print_stack.
1648
1649 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 Sergio Durigan Junior <sergiodj@redhat.com>
1651
1652 Code cleanup.
1653 * parse.c (exp_iterate): Use operator_length wrapper function.
1654
1655 2010-05-18 Michael Snyder <msnyder@vmware.com>
1656
1657 * ada-lang.c: White space.
1658 * ada-typeprint.c: White space.
1659 * ada-valprint.c: White space.
1660 * addrmap.c: White space.
1661 * auxv.c: White space.
1662 * ax-gdb.c: White space.
1663
1664 2010-05-18 Hui Zhu <teawater@gmail.com>
1665
1666 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1667 for oldfp.
1668 (inferior_call_waitpid): Move make_cleanup out of check.
1669 Check the return of waitpid.
1670 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1671
1672 2010-05-17 Michael Snyder <msnyder@vmware.com>
1673
1674 * tui/tui.c: White space.
1675 * tui/tui-data.c: White space.
1676 * tui/tui-disasm.c: White space.
1677 * tui/tui-file.c: White space.
1678 * tui/tui-interp.c: White space.
1679 * tui/tui-main.c: White space.
1680 * tui/tui-out.c: White space.
1681 * tui/tui-regs.c: White space.
1682 * tui/tui-source.c: White space.
1683 * tui/tui-stack.c: White space.
1684 * tui/tui-win.c: White space.
1685 * tui/tui-winsource.c: White space.
1686
1687 * procfs.c: White space.
1688
1689 * python/py-auto-load.c: White space.
1690 * python/py-block.c: White space.
1691 * python/py-breakpoint.c: White space.
1692 * python/py-cmd.c: White space.
1693 * python/py-function.c: White space.
1694 * python/py-lazy-string.c: White space.
1695 * python/py-objfile.c: White space.
1696 * python/py-param.c: White space.
1697 * python/py-prettyprint.c: White space.
1698 * python/py-progspace.c: White space.
1699 * python/py-symtab.c: White space.
1700 * python/python.c: White space.
1701 * python/py-type.c: White space.
1702 * python/py-utils.c: White space.
1703 * python/py-value.c: White space.
1704
1705 * mi/mi-cmd-break.c: White space.
1706 * mi/mi-cmd-env.c: White space.
1707 * mi/mi-cmds.c: White space.
1708 * mi/mi-cmd-stack.c: White space.
1709 * mi/mi-cmd-var.c: White space.
1710 * mi/mi-console.c: White space.
1711 * mi/mi-getopt.c: White space.
1712 * mi/mi-interp.c: White space.
1713 * mi/mi-main.c: White space.
1714 * mi/mi-out.c: White space.
1715 * mi/mi-parse.c: White space.
1716
1717 * cli/cli-cmds.c: White space.
1718 * cli/cli-decode.c: White space.
1719 * cli/cli-dump.c: White space.
1720 * cli/cli-interp.c: White space.
1721 * cli/cli-logging.c: White space.
1722 * cli/cli-script.c: White space.
1723 * cli/cli-setshow.c: White space.
1724
1725 * valarith.c: White space.
1726 * valops.c: White space.
1727 * valprint.c: White space.
1728 * value.c: White space.
1729 * varobj.c: White space.
1730 * xcoffread.c: White space.
1731 * xml-support.c: White space.
1732 * xml-tdesc.c: White space.
1733
1734 2010-05-17 Andreas Schwab <schwab@redhat.com>
1735
1736 PR gdb/11092
1737 * c-lang.c (c_printstr): Compute real length of NUL terminated
1738 string at first.
1739
1740 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1741
1742 * parse.c (parse_exp_in_context): When block is not NULL, use
1743 its associated language to parse the expression instead of
1744 the current_language.
1745
1746 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1747
1748 * jv-lang.c (java_lookup_class): Remove commented out code.
1749 (type_from_class): Likewise.
1750 (java_op_print_tab): Remove commented-out elements.
1751
1752 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1753
1754 * ada-lang.c (to_fixed_range_type): The the raw index type as
1755 argument instead of the raw type name. Remove orig_type parameter.
1756 Update calls throughout.
1757 (ada_fixup_array_indexes_type): New function.
1758 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1759 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1760 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1761 Remove name parameter.
1762 (print_array_type): Add call to ada_fixup_array_indexes_type.
1763 Update calls to print_range_type.
1764 (ada_print_type): Update calls to print_range_type.
1765
1766 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1767
1768 * dwarf2read.c (read_set_type): Set type length if
1769 DW_AT_byte_size attribute is present.
1770
1771 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1772
1773 * p-valprint.c (pascal_val_print): Handle set type if range limits
1774 are undefined but size is known.
1775
1776 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1777
1778 * procfs.c: Reformat.
1779
1780 2010-05-16 Michael Snyder <msnyder@vmware.com>
1781
1782 * target.c: White space.
1783 * target-descriptions.c: White space.
1784 * target-memory.c: White space.
1785 * thread.c: White space.
1786 * top.c: White space.
1787 * tracepoint.c: White space.
1788 * trad-frame.c: White space.
1789 * tramp-frame.c: White space.
1790 * ui-file.c: White space.
1791 * ui-out.c: White space.
1792 * user-regs.c: White space.
1793 * utils.c: White space.
1794
1795 * scm-exp.c: White space.
1796 * scm-lang.c: White space.
1797 * scm-valprint.c: White space.
1798 * sentinel-frame.c: White space.
1799 * ser-base.c: White space.
1800 * ser-go32.c: White space.
1801 * serial.c: White space.
1802 * ser-mingw.c: White space.
1803 * ser-pipe.c: White space.
1804 * ser-tcp.c: White space.
1805 * ser-unix.c: White space.
1806 * solib.c: White space.
1807 * solib-darwin.c: White space.
1808 * solib-frv.c: White space.
1809 * solib-irix.c: White space.
1810 * solib-osf.c: White space.
1811 * solib-pa64.c: White space.
1812 * solib-som.c: White space.
1813 * solib-spu.c: White space.
1814 * solib-svr4.c: White space.
1815 * solib-target.c: White space.
1816 * source.c: White space.
1817 * stabsread.c: White space.
1818 * stack.c: White space.
1819 * std-regs.c: White space.
1820 * symfile.c: White space.
1821 * symmisc.c: White space.
1822 * symtab.c: White space.
1823
1824 2010-05-16 Michael Snyder <msnyder@vmware.com>
1825
1826 * source.c (_initialize_source): Add "rev" as an abbreviation
1827 for the "reverse-search" command.
1828
1829 2010-05-16 Michael Snyder <msnyder@vmware.com>
1830
1831 * record.c: White space.
1832 * regcache.c: White space.
1833 * reggroups.c: White space.
1834 * remote-fileio.c: White space.
1835 * remote-m32r-sdi.c: White space.
1836 * remote-mips.c: White space.
1837 * remote-sim.c: White space.
1838 * remote.c: White space.
1839 (process_g_packet): Remove orphan braces.
1840
1841 2010-05-15 Michael Snyder <msnyder@vmware.com>
1842
1843 * parse.c: White space.
1844 * p-lang.c: White space.
1845 * posix-hdep.c: White space.
1846 * printcmd.c: White space.
1847 * progspace.c: White space.
1848 * prologue-value.c: White space.
1849 * psymtab.c: White space.
1850 * p-typeprint.c: White space.
1851 * p-valprint.c: White space.
1852
1853 * objc-lang.c: White space.
1854 * objfiles.c: White space.
1855 * observer.c: White space.
1856 * osabi.c: White space.
1857 * osdata.c: White space.
1858
1859 * m2-lang.c: White space.
1860 * m2-valprint.c: White space.
1861 * macrocmd.c: White space.
1862 * macroexp.c: White space.
1863 * macroscope.c: White space.
1864 * macrotab.c: White space.
1865 * main.c: White space.
1866 * maint.c: White space.
1867 * mdebugread.c: White space.
1868 * memattr.c: White space.
1869 * minsyms.c: White space.
1870 * monitor.c: White space.
1871
1872 2010-05-14 Michael Snyder <msnyder@vmware.com>
1873
1874 * jv-lang.c: White space.
1875 * jv-typeprint.c: White space.
1876 * jv-valprint.c: White space.
1877 * language.c: White space.
1878 * libunwind-frame.c: White space.
1879 * linespec.c: White space.
1880 * linux-nat.c: White space.
1881 * linux-record.c: White space.
1882 * linux-thread-db.c: White space.
1883
1884 * infcall.c: White space.
1885 * inf-child.c: White space.
1886 * infcmd.c: White space.
1887 * inferior.c: White space.
1888 * inf-loop.c: White space.
1889 * inflow.c: White space.
1890 * inline-frame.c: White space.
1891 * interps.c: White space.
1892
1893 * gcore.c: White space.
1894 * gdb.c: White space.
1895 * gdbtypes.c: White space.
1896 * gnu-nat.c: White space.
1897 * gnu-v2-abi.c: White space.
1898 * gnu-v3-abi.c: White space.
1899
1900 * findcmd.c: White space.
1901 * findvar.c: White space.
1902 * fork-child.c: White space.
1903 * frame-base.c: White space.
1904 * frame.c: White space.
1905 * frame-unwind.c: White space.
1906 * f-valprint.c: White space.
1907
1908 * elfread.c: White space.
1909 * environ.c: White space.
1910 * eval.c: White space.
1911 * event-loop.c: White space.
1912 * event-top.c: White space.
1913 * exceptions.c: White space.
1914 * exec.c: White space.
1915 * expprint.c: White space.
1916
1917 * dbxread.c: White space.
1918 * dcache.c: White space.
1919 * disasm.c: White space.
1920 * doublest.c: White space.
1921 * dsrec.c: White space.
1922 * dummy-frame.c: White space.
1923 * dwarf2expr.c: White space.
1924 * dwarf2-frame.c: White space.
1925 * dwarf2loc.c: White space.
1926 * dwarf2read.c: White space.
1927
1928 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1929
1930 PR python/11482
1931
1932 * python/py-value.c (valpy_hash): New function.
1933 (value_object_type): Register valpy_hash.
1934
1935 2010-05-14 Hui Zhu <teawater@gmail.com>
1936 Michael Snyder <msnyder@vmware.com>
1937
1938 * linux-fork.c (gdbthread.h): New include.
1939 (fork_info): Add parent_ptid.
1940 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1941 functions.
1942 (delete_checkpoint_command): Call inferior_call_waitpid.
1943 (checkpoint_command): Set parent_ptid.
1944
1945 2010-05-13 Michael Snyder <msnyder@vmware.com>
1946
1947 * dictionary.c: Re-indent to GNU coding standard.
1948
1949 * charset.c: White space.
1950 * c-lang.c: White space.
1951 * cli-out.c: White space.
1952 * coffread.c: White space.
1953 * complaints.c: White space.
1954 * completer.c: White space.
1955 * corefile.c: White space.
1956 * corelow.c: White space.
1957 * cp-abi.c: White space.
1958 * cp-namespace.c: White space.
1959 * cp-support.c: White space.
1960 * cp-valprint.c: White space.
1961 * c-typeprint.c: White space.
1962 * c-valprint.c: White space.
1963 * blockframe.c: White space.
1964 * breakpoint.c: White space.
1965 * buildsym.c: White space.
1966 * blockframe.c: White space.
1967 * bcache.c: White space.
1968 * gdbarch.sh: White space, add blank lines.
1969 * arch-utils.c: Ditto.
1970 * gdbarch.c: Regenerate.
1971 * frame.c: White space, add blank lines.
1972 * stack.c: White space, add blank lines.
1973 (initialize_stack): Remove long-dead code.
1974
1975 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1976
1977 Code cleanup.
1978 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1979 (locexpr_read_variable, loclist_read_variable): Update the callers.
1980
1981 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1982
1983 Code cleanup.
1984 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1985 Remove check of NULL returned by tag_type_to_type.
1986 (die_containing_type): Remove variable type. Remove type_die variable
1987 initialization. Remove check of NULL returned by tag_type_to_type.
1988
1989 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1990
1991 PR exp/11530.
1992 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1993 names of unnamed structures or unions.
1994
1995 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1996
1997 * procfs.c (proc_watchpoint_address): New function.
1998 (procfs_stopped_by_watchpoint): Remove useless check after
1999 find_procinfo_or_die call.
2000 (procfs_stopped_data_address): New function.
2001 (procfs_use_watchpoints): Register new watchpoint related function.
2002
2003 2010-05-11 Tom Tromey <tromey@redhat.com>
2004
2005 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
2006
2007 2010-05-10 Michael Snyder <msnyder@vmware.com>
2008
2009 * utils.c: White space cleanup.
2010
2011 2010-05-10 Tom Tromey <tromey@redhat.com>
2012
2013 * eval.c (ptrmath_type_p): Add 'lang' argument.
2014 (evaluate_subexp_standard): Update.
2015 (evaluate_subexp_with_coercion): Update.
2016 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2017
2018 2010-05-10 Michael Snyder <msnyder@vmware.com>
2019
2020 * utils.c (do_fclose_cleanup) Restore local variable.
2021
2022 2010-05-09 Doug Evans <dje@google.com>
2023
2024 * record.c (init_record_core_ops): Rename record_core to record-core.
2025
2026 2010-05-08 Joel Brobecker <brobecker@adacore.com>
2027
2028 Implement task switching on pa-hpux.
2029 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
2030 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
2031
2032 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2033
2034 * valops.c (find_overload_match): Add missing i18n markup.
2035
2036 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2037
2038 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
2039
2040 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
2043 list for the obconcat call.
2044 * mdebugread.c (parse_symbol): Likewise.
2045 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
2046 Likewise.
2047 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
2048 New variable ap. Remove variables len and val.
2049 * symfile.h (obconcat): Likewise for the prototype.
2050
2051 2010-05-07 Michael Snyder <msnyder@vmware.com>
2052
2053 * python/python.c (execute_gdb_command): Remove unused variables.
2054 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
2055 * python/py-breakpoint.c (gdbpy_breakpoint_created):
2056 Remove unused variable.
2057 * python/py-cmd.c (cmdpy_function): Remove unused variable.
2058 (cmdpy_completer): Remove unused variable.
2059 * python/py-frame.c (frapy_find_sal): Remove unused variable.
2060 * python/py-function.c (fnpy_call): Remove unused variable.
2061 * python/py-objfile.c (objfile_to_objfile_object):
2062 Remove unused variable.
2063 * python/py-param.c (parmpy_init): Remove unused variable.
2064 * python/py-prettyprint.c (apply_varobj_pretty_printer):
2065 Remove unused variable.
2066 (gdbpy_default_visualizer): Remove unused variable.
2067 * python/py-progspace.c (pspace_to_pspace_object):
2068 Remove unused variable.
2069 * python/py-symtab.c (symtab_and_line_to_sal_object):
2070 Remove unused variable.
2071 * python/py-type.c (typy_template_argument):
2072 Remove unused variable.
2073 * python/py-value.c (valpy_string): Remove unused variable.
2074 (convert_value_from_python): Remove unused variables.
2075
2076 2010-05-07 Michael Snyder <msnyder@vmware.com>
2077
2078 * valops.c (value_cast_pointers): Restore unused variable 'type1',
2079 and use it to compute variable 't1'.
2080
2081 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2082
2083 * ada-lang.c (assign_aggregate): Remove unused variable.
2084
2085 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
2086
2087 PR C++/7943:
2088 * valops.c (find_overload_match): Handle fsym == NULL case.
2089 Add int no_adl argument.
2090 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
2091 when appropriate.
2092 Add int no_adl argument.
2093 (find_oload_champ_namespace): Add int no_adl argument.
2094 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
2095 expression.
2096 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
2097 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
2098 Evaluate arguments and use them to perform ADL lookup.
2099 Pass no_adl argument to find_overload_match.
2100 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
2101 * cp-support.h: Added prototype for
2102 make_symbol_overload_list_namespace.
2103 * cp-support.c (make_symbol_overload_list_namespace): New function.
2104 (make_symbol_overload_list_adl_namespace): New function.
2105 (make_symbol_overload_list_adl): New function.
2106 (make_symbol_overload_list_using): Moved code to add function to
2107 overload set to make_symbol_overload_list_namespace.
2108 * c-exp.y: create UNKNOWN_CPP_NAME token.
2109 Add parse rule for ADL functions.
2110 (classify_name): Recognize an UNKNOWN_CPP_NAME.
2111
2112 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2113
2114 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2115 sentinel.
2116
2117 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2118
2119 Implement task switching on solaris targets.
2120 * sol-thread.c (thread_db_find_thread_from_tid)
2121 (sol_get_ada_task_ptid): New functions.
2122 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2123
2124 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2125
2126 * remote.c (remote_query_supported_append): Use reconcat.
2127 (remote_query_supported): Install a cleanup. Use reconcat.
2128
2129 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2130
2131 * gdbarch.sh (qsupported): Delete.
2132 * gdbarch.h, gdbarch.c: Regenerate.
2133 * remote.c (remote_query_supported): Remove use of
2134 gdbarch_qsupported.
2135
2136 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2137
2138 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2139 function.
2140
2141 2010-05-06 Michael Snyder <msnyder@vmware.com>
2142
2143 * xml-support.c (xinclude_start_include): Delete unused variable.
2144 (xml_process_xincludes): Delete unused variable.
2145 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2146 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2147 (tdesc_find_arch_register): Delete unused variable.
2148 (tdesc_use_registers): Delete unused variable.
2149 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2150 * inferior.c (print_inferior): Delete unused variable.
2151 * record.c (record_open_1): Delete unused variable.
2152 (record_restore): Delete unused variable.
2153 (cmd_record_save): Delete unused variable.
2154 * gcore.c (derive_heap_segment): Delete unused variable.
2155 (objfile_find_memory_regions): Use unused variable.
2156 * jit.c (jit_inferior_init): Delete unused variable.
2157 * progspace.c (clone_program_space): Delete unused variable.
2158 (pspace_empty_p): Delete unused variable.
2159
2160 * frame-unwind.c (frame_unwind_find_by_frame):
2161 Delete unused variable.
2162 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2163 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2164 (method_name_from_physname): Delete unused variable.
2165 (cp_func_name): Delete unused variable.
2166 (cp_validate_operator): Delete unused variable.
2167 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
2168 Delete unused variable.
2169 * trad-frame.c (trad_frame_get_prev_register):
2170 Delete unused variable.
2171 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2172
2173 * serial.c (serial_for_fd): Delete unused variable.
2174 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2175 * top.c (execute_command): Delete unused variable.
2176 (init_main): Delete unused variable.
2177 * utils.c (do_fclose_cleanup): Delete unused variable.
2178 (do_all_inferior_continuations): Delete unused variable.
2179 (initialize_utils): Delete unused variable.
2180 (internal_problem_mode): Delete unused global.
2181 * frame.c (get_prev_frame): Delete unused global.
2182 (get_frame_locals_address): Delete unused global.
2183 (get_frame_args_address): Delete unused global.
2184
2185 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2186 (pascal_type_print_varspec_prefix): Delete unused variable.
2187 * f-typeprint.c (f_type_print_base): Delete unused variable.
2188 (f_type_print_varspec_suffix): Delete unused variable.
2189 * m2-typeprint.c (m2_print_type): Delete unused variable.
2190 (m2_long_set): Delete unused variable.
2191 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2192 * d-valprint.c (dynamic_array_type): Delete unused variable.
2193 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2194 Delete unused variable.
2195 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2196 * m2-valprint.c (m2_val_print): Delete unused variable.
2197
2198 * ui-out.c (ui_out_field_int): Delete unused variable.
2199 (ui_out_field_fmt_int): Delete unused variable.
2200 * varobj.c (varobj_list_children): Delete unused variable.
2201 (varobj_set_value): Delete unused variable.
2202 (install_new_value_visualizer): Delete unused variable.
2203 (varobj_set_visualizer): Delete unused variable.
2204 (varobj_update): Delete unused variable.
2205 (varobj_editable_p): Delete unused variable.
2206 (c_value_of_root): Delete unused variable.
2207 (cplus_describe_child): Delete unused variable.
2208
2209 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2210 (decode_constrained_packed_array_type): Delete unused variable.
2211 (add_defn_to_vec): Delete unused variable.
2212 (symbol_completion_match): Delete unused variable.
2213 (value_tag_from_contents_and_address): Delete unused variable.
2214 (ada_evaluate_subexp): Delete unused variable.
2215 * c-lang.c (classify_type): Delete unused variable.
2216 * f-lang.c (f_printstr): Delete unused variable.
2217 * objc-lang.c (objc_printstr): Delete unused variable.
2218 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2219 * jv-lang.c (type_from_class): ifdef unused variable.
2220 (java_class_name_from_physname): Delete unused variable.
2221 * m2-lang.c (m2_printstr): Delete unused variable.
2222
2223 * objfiles.c (objfile_relocate): Delete unused variable.
2224 * maint.c (_initialize_maint_cmds): Delete unused variable.
2225 * demangle.c (_initialize_demangler): Delete unused variable.
2226 * corefile.c (reopen_exec_file): Delete unused variable.
2227 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2228 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2229
2230 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2231 * memattr.c (mem_delete): Delete unused variable.
2232 (invalidate_target_mem_regions): Delete unused variable.
2233 * mem-break.c (default_memory_insert_breakpoint):
2234 Delete unused variable.
2235 * target.c (target_get_osdata): Delete unused variable.
2236 * parse.c (length_of_subexp): Delete unused variable.
2237 (prefixify_subexp): Delete unused variable.
2238 (exp_iterate): Delete unused variable.
2239 * reverse.c (delete_bookmark_command): Delete unused variable.
2240
2241 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2242 * macroexp.c (gather_arguments): Delete unused variable.
2243 (substitute_args): Delete unused variable.
2244 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2245 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2246 (_initialize_gdbarch): Delete unused variable.
2247 * gdbarch.c, gdbarch.h: Regenerate.
2248 * arch-utils.c (initialize_current_architecture):
2249 Delete unused variable.
2250 (_initialize_gdbarch_utils): Delete unused variable.
2251 * gdbtypes.c (make_cv_type): Delete unused variable.
2252 (make_type_with_address_space): Delete unused variable.
2253
2254 * linespec.c (decode_compound): Delete unused variable.
2255 * dictionary.c (iterator_next_hashed): Delete unused variable.
2256 * infcall.c (call_function_by_hand): Delete unused variable.
2257 * infcmd.c (step_1): Delete unused variable.
2258 (registers_info): Delete unused variable.
2259 (attach_command): Delete unused variable.
2260 * infrun.c (follow_exec): Delete unused variable.
2261 (handle_step_into_function_backwards): Delete unused variable.
2262 (_initialize_infrun): Delete unused variable.
2263 * stack.c (parse_frame_specification_1): Delete unused variable.
2264 (frame_info): Delete unused variable.
2265 (backtrace_command_1): Delete unused variable.
2266 (catch_info): Delete unused variable.
2267
2268 * eval.c (evaluate_subexp_standard): Delete unused variable.
2269 * valops.c (value_cast_pointers): Delete unused variable.
2270 (value_dynamic_cast): Delete unused variable.
2271 (value_array): Delete unused variable.
2272 (find_overload_match): Delete unused variable.
2273 * valarith.c (value_subscript): Delete unused variable.
2274 (value_binop): Delete unused variable.
2275 * valprint.c (_initialize_valprint): Delete unused variable.
2276 * printcmd.c (print_command_1): Delete unused variable.
2277 (address_info): Delete unused variable.
2278 (printf_command): Delete unused variable.
2279
2280 * auxv.c (target_auxv_search): Delete unused variable.
2281 * blockframe.c (get_frame_block): Delete unused variable.
2282 * regcache.c (regcache_cpy): Delete unused variable.
2283 (regcache_cpy_no_passthrough): Delete unused variable.
2284 * charset.c (wchar_iterate): Delete unused variable.
2285 (find_charset_names): Delete unused variable.
2286 (_initialize_charset): Delete unused variable.
2287 * disasm.c (do_mixed_source_and_assembly):
2288 Delete unused variable.
2289 * source.c (set_default_source_symtab_and_line):
2290 Delete unused variable.
2291 (set_substitute_path_command): Delete unused variable.
2292 * value.c (preserve_values): Delete unused variable.
2293 (value_from_double): Delete unused variable.
2294
2295 2010-05-05 Michael Snyder <msnyder@vmware.com>
2296
2297 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2298 (find_last_source_symtab_from_partial): Delete unused variable.
2299 * symfile.c (place_section): Delete unused variable.
2300 (default_symfile_offsets): Delete unused variable.
2301 (get_debug_link_info): Delete unused variable.
2302 (find_separate_debug_file_by_debuglink): Delete unused variable.
2303 (add_symbol_file_command): Delete unused variable.
2304 (symfile_find_segment_sections): Delete unused variable.
2305 * symmisc.c (free_symtab): Delete unused variable.
2306 (dump_symtab_1): Delete unused variable.
2307 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2308 (find_pc_sect_symtab): Delete unused variable.
2309 (skip_prologue_using_lineinfo): Delete unused variable.
2310 (sources_info): Delete unused variable.
2311 (completion_list_add_name): Delete unused variable.
2312 (expand_line_sal): Delete unused variable.
2313
2314 * breakpoint.c (validate_commands_for_breakpoint):
2315 Delete unused variables.
2316 (insert_catchpoint): Delete unused variable.
2317 (update_watchpoint): Delete unused variable.
2318 (insert_bp_location): Delete unused variable.
2319 (insert_breakpoint_locations): Delete unused variable.
2320 (remove_breakpoint_1): Delete unused variable.
2321 (software_breakpoint_inserted_here_p): Delete unused variable.
2322 (watchpoints_triggered): Delete unused variable.
2323 (bpstat_check_watchpoint): Delete unused variable.
2324 (bpstat_stop_status): Delete unused variable.
2325 (print_one_breakpoint_location): Delete unused variable.
2326 (allocate_bp_location): Delete unused variable.
2327 (create_breakpoint): Delete unused variable.
2328 (watch_command_1): Delete unused variable.
2329 (catch_exception_command_1): Delete unused variable.
2330 (catch_ada_exception_command): Delete unused variable.
2331 (delete_breakpoint): Delete unused variable.
2332 (breakpoint_re_set_one): Delete unused variable.
2333 (do_enable_breakpoint): Delete unused variable.
2334
2335 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2336
2337 * amd64-tdep.c: Include disasm.h.
2338 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2339 (amd64_insn_length): Moved to disasm.c and renamed.
2340 (fixup_riprel): Adjust.
2341 * disasm.c (do_ui_file_delete): New.
2342 (gdb_insn_length): New.
2343 (gdb_buffered_insn_length_fprintf)
2344 (gdb_buffered_insn_length_init_dis)
2345 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2346 renamed.
2347 * disasm.h (gdb_insn_length): Declare.
2348 (gdb_buffered_insn_length): Declare.
2349
2350 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2351
2352 * remote.c (clear_threads_parsing_context): New.
2353 (remote_threads_info): Delete unused null_cleanup. Install a
2354 cleanup to clear the threads_parsing_context in case parsing
2355 throws.
2356
2357 2010-05-05 Michael Snyder <msnyder@vmware.com>
2358
2359 * c-exp.y (parse_string_or_char): Delete unused variable.
2360 (c_lex): Delete unused variable.
2361 * cp-name-parser.y (cpname_lex): Delete unused variable.
2362 * ada-exp.y (find_primitive_type): Delete unused variable.
2363 (write_var_or_type): Delete unused variable.
2364 * jv-exp.y (java_parse): Delete unused variable.
2365 (push_expression_name): Delete unused variable.
2366 * p-exp.y (pascal_lex): Delete unused variable.
2367
2368 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2369
2370 * remote.c (remote_threads_info): Really revert previous previous
2371 change.
2372
2373 2010-05-05 Michael Snyder <msnyder@vmware.com>
2374
2375 * elfread.c (elf_symtab_read): Delete unused variable.
2376 (find_separate_debug_file_by_buildid): Delete unused variables.
2377 (elf_symfile_read): Delete unused variable.
2378
2379 * coffread.c (coff_symfile_read): Delete unused variables.
2380
2381 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2382 (read_pe_exported_syms): Delete unused variable.
2383
2384 * stabsread.c (define_symbol): Delete unused variable.
2385
2386 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2387 (process_psymtab_comp_unit): Delete unused variable.
2388 (dwarf2_build_psymtabs_hard): Delete unused variable.
2389 (load_partial_comp_unit): Delete unused variable.
2390 (create_all_comp_units): Delete unused variable.
2391 (scan_partial_symbols): Delete unused variable.
2392 (add_partial_symbol): Delete unused variable.
2393 (add_partial_namespace): Delete unused variable.
2394 (add_partial_enumeration): Delete unused variable.
2395 (load_full_comp_unit): Delete unused variable.
2396 (process_full_comp_unit): Delete unused variable.
2397 (read_file_scope): Delete unused variable.
2398 (read_type_unit_scope): Delete unused variable.
2399 (process_structure_scope): Delete unused variable.
2400 (process_enumeration_scope): Delete unused variable.
2401 (read_tag_ptr_to_member_type): Delete unused variable.
2402 (read_typedef): Delete unused variable.
2403 (read_partial_die): Delete unused variable.
2404 (decode_locdesc): Delete unused variable.
2405 (zeroed_partial_die): Delete unused global variable.
2406
2407 * tui/tui-interp.c (_initialize_tui_interp):
2408 Delete unused variable.
2409 * tui/tui-regs.c tui_display_registers_from):
2410 Delete unused variable.
2411 (tui_check_register_values): Delete unused variable.
2412 (tui_register_format): Delete unused variable.
2413 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2414 * tui/tui-windata.c (tui_display_data_from_line):
2415 Delete unused variables.
2416 (tui_vertical_data_scroll): Delete unused variables.
2417
2418 2010-05-05 Michael Snyder <msnyder@vmware.com>
2419
2420 * remote.c (remote_threads_info): Revert questionable part of
2421 the previous change.
2422
2423 2010-05-05 Michael Snyder <msnyder@vmware.com>
2424
2425 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2426 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2427 (mi_cmd_var_list_children): Delete unused variable.
2428 (varobj_update_one): Delete unused variable.
2429 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2431 Delete unused variable.
2432 (mi_cmd_stack_list_variables): Delete unused variable.
2433 (list_args_or_locals): Delete unused variable.
2434 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2435 Delete unused variables.
2436 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2437 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2438 Delete unused variable.
2439 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2440 (mi_cmd_interpreter_exec): Delete unused variable.
2441 (mi_on_normal_stop): Delete unused variable.
2442 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2443 (print_one_inferior): Delete unused variables.
2444 (mi_execute_command): Delete unused variable.
2445 (mi_cmd_execute): Delete unused variable.
2446 (timestamp): Delete unused variable.
2447
2448 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2449 (restore_binary_file): Delete unused variable.
2450 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2451 * cli/cli-script.c (define_command): Delete unused variables.
2452 (recurse_read_control_structure): Delete unused variable.
2453 (script_from_file): Delete unused variable.
2454 * cli/cli-cmds.c (complete_command): Delete unused variable.
2455 (disassemble_command): Delete unused variable.
2456
2457 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2458 * tracepoint.c (delete_trace_variable_command):
2459 Delete unused variables.
2460 (encode_actions_1): Delete unused variables.
2461 (start_tracing): Delete unused variable.
2462 (trace_status_mi): Delete unused variable.
2463 (tfind_1): Delete unused variable.
2464 (trace_find_pc_command): Delete unused variable.
2465 (trace_find_line_command): Delete unused variables.
2466 (trace_find_range_command): Delete unused variables.
2467 (trace_find_outside_command): Delete unused variables.
2468 (parse_tracepoint_definition): Delete unused variables.
2469 (tfile_fetch_registers): Delete unused variable.
2470
2471 * dcache.c (dcache_init): Delete unused variable.
2472 (dcache_info): Delete unused variable.
2473
2474 * remote.c (remote_threads_info): Delete unused variable.
2475 (process_stop_reply) :Delete unused variable.
2476 (remote_get_trace_status): Delete unused variables.
2477
2478 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2479 (thread_from_lwp): Delete unused variable.
2480 (enable_thread_event_reporting): Delete unused variable.
2481 (check_for_thread_db): Delete unused variables.
2482 (thread_db_find_new_threads_2): Delete unused variable.
2483
2484 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2485 (checkpoint_command): Delete unused variable.
2486 (linux_fork_context): Delete unused variables.
2487
2488 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2489 (linux_tracefork_child): Delete unused variable.
2490 (linux_child_follow_fork): Delete unused variable.
2491 (linux_nat_detach): Delete unused variable.
2492 (linux_handle_extended_wait): Delete unused variable.
2493 (linux_nat_has_pending_sigint): Delete unused variable.
2494 (linux_nat_find_memory_regions): Delete unused variable.
2495 (linux_nat_make_corefile_notes): Delete unused variables.
2496 (linux_nat_info_proc_cmd): Delete unused variable.
2497 (linux_proc_pending_signals): Delete unused variable.
2498 (linux_nat_stop_lwp): Delete unused variables.
2499 (_initialize_linux_nat): Delete unused variable.
2500
2501 * ser-pipe.c (pipe_ops): Delete unused global variable.
2502
2503 * linux-record.c (record_linux_system_call):
2504 Delete unused variables.
2505
2506 * corelow.c (core_xfer_partial): Delete unused variables.
2507
2508 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2509 (svr4_solib_create_inferior_hook): Add ifdef around
2510 conditionally-used variable declarations.
2511
2512 * solib.c (solib_find): Delete unused variable.
2513 (free_so_symbols): Delete unused variable.
2514 (info_sharedlibrary_command): Delete unused variable.
2515 (reload_shared_libraries_1): Delete unused variable.
2516 (_initialize_solib): Delete unused variable.
2517
2518 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2519 (i386_collect_xstateregset): Delete unused variable.
2520 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2521
2522 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2523 Delete unused variable 'type'.
2524
2525 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2526
2527 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2528 ada-lang.c: Remove comment mentioning these macros.
2529 * m2-exp.y: Delete commented out code.
2530
2531 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2532
2533 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2534 for array types.
2535 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2536
2537 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2538
2539 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2540 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2541 ATTRIBUTE_UNUSED.
2542 (cleanup_kernel_helper_return): Likewise.
2543 * arm-tdep.c (copy_unmodified): Likewise.
2544 (copy_preload): Likewise.
2545 (copy_copro_load_store): Likewise.
2546 (cleanup_branch): Likewise.
2547 (copy_b_bl_blx): Likewise.
2548 (copy_bx_blx_reg): Likewise.
2549 (copy_alu_imm): Likewise.
2550 (copy_alu_reg): Likewise.
2551 (copy_alu_shifted_reg): Likewise.
2552 (cleanup_load): Likewise.
2553 (cleanup_store): Likewise.
2554 (cleanup_block_load_pc): Likewise.
2555 (cleanup_svc): Likewise.
2556 (copy_undef): Likewise.
2557 (copy_unpred): Likewise.
2558 * remote.c (register_remote_support_xml): Likewise.
2559
2560 2010-05-05 Hui Zhu <teawater@gmail.com>
2561
2562 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2563
2564 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2565
2566 * remote.c (register_remote_support_xml)
2567 (remote_query_supported_append, remote_query_supported): Add cast
2568 to NULL used as sentinel.
2569 * tracepoint.c (tvariables_info_1): Likewise.
2570 * utils.c (add_internal_problem_command): Likewise.
2571
2572 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2573
2574 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2575 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2576 registers gracefully.
2577
2578 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2579
2580 * exec.c (print_section_info): Display entry point without arch
2581 specific parts.
2582
2583 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2584
2585 PR exp/11349.
2586 * printcmd.c (x_command): Only dereference once implicitly for
2587 TYPE_CODE_REF.
2588
2589 2010-05-03 Doug Evans <dje@google.com>
2590
2591 * event-loop.c (gdb_timer): Delete unused global.
2592 (create_timer): Update.
2593
2594 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2597 CURRENT->DECLARATION case.
2598 * cp-support.h (struct using_direct): Provide extended comment.
2599
2600 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2601
2602 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2603 HPPABSD_SIZEOF_GREGS.
2604 (HPPAOBSD_SIZEOF_FPREGS): New define.
2605 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2606 (hppaobsd_supply_fpregset): New function.
2607 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2608 (hppaobsd_fpregset): New variable.
2609 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2610 (_initialize_hppabsd_tdep): Remove spurious blank line.
2611
2612 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2613
2614 PR pascal/11349.
2615 * p-valprint.c (pascal_value_print): Always dereference a value with
2616 type code TYPE_CODE_REF.
2617
2618 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2619
2620 * remote.c (remote_notice_signals): New.
2621 (remote_start_remote): In non-stop mode, update the remote end on
2622 which signals it can silently pass.
2623 (init_remote_ops): Install remote_notice_signals.
2624
2625 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2626
2627 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2628 * command.h (error_no_arg): ... here. Remove NORETURN, change
2629 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2630 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2631 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2632 (internal_verror, internal_error, nomem): Remove NORETURN, change
2633 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2634 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2635 (throw_vfatal, throw_error): Remove NORETURN.
2636 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2637 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2638 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2639 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2640 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2641 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2642 NORETURN.
2643 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2644 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2645 ATTRIBUTE_NORETURN.
2646 * target.c (tcomplain): Likewise.
2647 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2648 ATTRIBUTE_NORETURN.
2649 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2650 (internal_error, perror_with_name, nomem): Remove NORETURN.
2651 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2652 ATTRIBUTE_NORETURN.
2653
2654 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2655
2656 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2657 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2658 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2659 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2660 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2661 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2662 * complaints.h (complaint, internal_complaint): Likewise.
2663 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2664 (ATTR_FORMAT): Remove.
2665 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2666 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2667 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2668 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2669 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2670 (internal_error, internal_vwarning, internal_warning, warning)
2671 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2672 * disasm.c (fprintf_disasm): Likewise.
2673 * exceptions.c (throw_it): Likewise.
2674 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2675 (throw_error): Likewise.
2676 * language.h (type_error, range_error): Likewise.
2677 * linespec.c (cplusplus_error): Likewise.
2678 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2679 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2680 * monitor.c (monitor_debug): Likewise.
2681 * parser-defs.h (parser_fprintf): Likewise.
2682 * serial.h (serial_printf): Likewise.
2683 * tui/tui-hooks.c (tui_query_hook): Likewise.
2684 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2685 (uo_message): Likewise.
2686 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2687 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2688 Likewise.
2689 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2690
2691 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2692
2693 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2694 (cli_table_header, cli_begin, cli_end, cli_field_int)
2695 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2696 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2697 Delete forward declarations.
2698 (cli_ui_out_impl): Move below the callbacks.
2699 (_initialize_cli_out): Delete.
2700
2701 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2702
2703 * README: Use consistent `GDB' and `GDBserver' spellings.
2704
2705 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2708
2709 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2710
2711 * infrun.c (prepare_for_detach): In non-stop, context switch to
2712 the thread that got the event before handling the event.
2713
2714 2010-04-30 Tom Tromey <tromey@redhat.com>
2715
2716 * symtab.c (symbol_set_names): Fix typo.
2717
2718 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2719
2720 * python/py-param.c (parm_constants): Avoid ARI warning
2721 by adding ARI comment.
2722 (parmpy_init): Likewise.
2723
2724 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2725
2726 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2727 and created type for re-use.
2728
2729 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2730
2731 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2732
2733 2010-04-29 Doug Evans <dje@google.com>
2734
2735 * ser-base.h (reschedule): Delete prototype.
2736 * ser-base.c (reschedule): Make static.
2737
2738 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2739
2740 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2741 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2742 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2743 EABI.
2744 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2745 use.
2746
2747 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2748
2749 PR gdb/11557
2750
2751 * regcache.c (registers_changed): Rename to ...
2752 (registers_changed_ptid): ... this, and only delete register cache
2753 entries matching the ptid filter argument.
2754 (registers_changed): Reimplement on top of registers_changed_ptid.
2755 * regcache.h (registers_changed_ptid): Declare.
2756 * target.c (target_resume): Flush register caches.
2757
2758 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2759 Tom Tromey <tromey@redhat.com>
2760 Thiago Jung Bauermann <bauerman@br.ibm.com>
2761
2762 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2763 (SUBDIR_PYTHON_SRCS): Likewise.
2764 (py-parameter.o): New rule.
2765 * python/py-parameter.c: New file.
2766 * python/python-internal.h (gdbpy_initialize_parameter)
2767 (gdbpy_parameter, gdbpy_parameter_value)
2768 (gdbpy_parse_command_name): Declare.
2769 * python/py-cmd.c (parse_command_name): Rename to
2770 gdbpy_parse_command_name.
2771 (gdbpy_parse_command_name): Accept a starting list parameter and
2772 use over cmdlist.
2773 (cmdpy_init): Use gdbpy_parse_command_name.
2774 * python/python.c (parameter_to_python): Rename to
2775 gdbpy_parameter_to_python. Accept enum var_types and value.
2776 (gdbpy_parameter): Use gdbpy_parameter_value.
2777 (_initialize_python): Call gdbpy_initialize_parameters.
2778
2779 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2780
2781 * MAINTAINERS: Add myself for write after approval privileges.
2782
2783 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2784
2785 D language support.
2786 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2787 (COMMON_OBS): Add d-lang.o d-valprint.o.
2788 (HFILES_NO_SRCDIR): Add d-lang.h.
2789 * NEWS: Mention D language support.
2790 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2791 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2792 * d-lang.c: New file.
2793 * d-lang.h: New file.
2794 * d-valprint.c: New file.
2795 * defs.h (enum language): Add language_d.
2796 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2797 * language.c (binop_result_type, integral_type, character_type)
2798 (string_type, boolean_type, structured_type): Add language_d.
2799 * symfile.c (init_filename_language_table): Add language_d.
2800 * symtab.c: Include d-lang.h.
2801 (symbol_init_language_specific, symbol_find_demangled_name)
2802 (symbol_natural_name, lookup_symbol_in_language)
2803 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2804
2805 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2806
2807 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2808
2809 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2810
2811 * symfile.c (init_filename_language_table): Register .dg files
2812 with language_ada.
2813
2814 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2815
2816 * gdbtypes.h (struct main_type): Expand comment about target_type
2817 field.
2818
2819 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2820 Tristan Gingold <gingold@adacore.com>
2821
2822 * symfile.c (reread_symbols): Also search for file in libraries.
2823 Update comment.
2824
2825 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2826
2827 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2828 in terms of configuration.
2829
2830 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * objfiles.c: Include solist.h.
2833 (free_all_objfiles): New variable so. Check stale solist objfiles.
2834 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2835 and no_shared_libraries.
2836
2837 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2838
2839 ARI warning fix.
2840 * python/py-auto-load.c (source_section_scripts): Remove trailing
2841 new-line in i18n string.
2842
2843 2010-04-26 Doug Evans <dje@google.com>
2844
2845 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2846
2847 2010-04-26 Tom Tromey <tromey@redhat.com>
2848
2849 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2850 command list.
2851
2852 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2853
2854 Removal of config/i386/nm-i386sol2.h native configuration file.
2855 * config/i386/nm-i386sol2.h: Remove file.
2856 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2857 * config/i386/sol2-64.mh: Idem.
2858 * config/djgpp/fnchange.lst: Remove reference to that file.
2859 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2860
2861 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2862
2863 PR breakpoints/11531.
2864 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2865 macro definition and related comment.
2866 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2867 (resume): Remove code and comment related to this macro.
2868
2869 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2872 Fix whitespace.
2873
2874 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2875
2876 * defs.h: Adjust comment.
2877 * filesystem.h, filesystem.c: New files.
2878 * Makefile.in (SFILES): Add filesystem.c.
2879 (COMMON_OBS): Add filesystem.o.
2880 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2881 different target and host path flavours.
2882 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2883 has_dos_based_file_system on the gdbarch.
2884 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2885 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2886 * i386-tdep.c (i386_go32_init_abi): Ditto.
2887 * gdbarch.sh (has_dos_based_file_system): New.
2888 * gdbarch.h, gdbarch.c: Regenerate.
2889 * NEWS: Mention improved support for remote targets with DOS-based
2890 filesystems. Mention new `set/show target-file-system-kind'
2891 commands.
2892
2893 2010-04-23 Stan Shebs <stan@codesourcery.com>
2894
2895 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2896 comments.
2897 (struct agent_reqs): Remove.
2898 (ax_reg_mask): Declare.
2899 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2900 (free_agent_expr): Free reg_mask.
2901 (ax_print): Add scope and register mask info.
2902 (ax_reqs): Remove agent_reqs argument, use agent expression
2903 fields, and move part of register mask computation to...
2904 (ax_reg_mask): New function.
2905 * ax-gdb.c (gen_trace_static_fields): Call it.
2906 (gen_traced_pop): Ditto.
2907 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2908 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2909 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2910 (gen_eval_for_expr): Ditto, and require an rvalue.
2911 (agent_command): Call ax_reqs.
2912 (agent_eval_command): Ditto.
2913 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2914 (validate_action_line): Ditto.
2915 (collect_symbol): Ditto.
2916 (encode_actions_1): Ditto.
2917
2918 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2919 Paul Pluzhnikov <ppluzhnikov@google.com>
2920 Jan Kratochvil <jan.kratochvil@redhat.com>
2921
2922 Fix deadlock on looped list of loaded shared objects.
2923 * solib-svr4.c (LM_PREV): New function.
2924 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2925 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2926 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2927 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2928
2929 2010-04-23 Doug Evans <dje@google.com>
2930
2931 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2932 python.
2933 * configure: Regenerate.
2934 * main.c: #include "python/python.h".
2935 (captured_main): Defer loading auto-loaded scripts until after
2936 local_gdbinit has been sourced.
2937 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2938 (load_auto_scripts_for_objfile): New function.
2939 (auto_load_new_objfile): Call it.
2940 * python/python.h (gdbpy_global_auto_load): Declare.
2941 (load_auto_scripts_for_objfile): Declare.
2942
2943 Add support for auto-loading scripts from .debug_gdb_scripts section.
2944 * NEWS: Add entry for .debug_gdb_scripts.
2945 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2946 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2947 (py-auto-load.o): New rule.
2948 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2949 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2950 * python/py-auto-load.c: New file.
2951 * python/python-internal.h: #include <stdio.h>.
2952 (set_python_list, show_python_list): Declare.
2953 (gdbpy_initialize_auto_load): Declare.
2954 (source_python_script_for_objfile): Declare.
2955 * python/python.c: Remove #include of observer.h.
2956 (gdbpy_auto_load): Moved to py-auto-load.c.
2957 (GDBPY_AUTO_FILENAME): Ditto.
2958 (gdbpy_new_objfile): Delete.
2959 (source_python_script_for_objfile): New function.
2960 (set_python_list, show_python_list): Make externally visible.
2961 (_initialize_python): Move "auto-load" command to py-auto-load.c
2962 and observer_attach_new_objfile to py-auto-load.c.
2963
2964 2010-04-23 Jerome Guitton <guitton@adacore.com>
2965
2966 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2967 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2968 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2969 New constants.
2970 (alpha_heuristic_analyze_probing_loop): New function.
2971 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2972 and handle cases when a stack probe loop is generated.
2973 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2974 (alpha_mdebug_max_frame_size_exceeded): New function.
2975 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2976 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2977 Return 0 when the maximum debuggable frame size has been exceeded.
2978
2979 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2980
2981 Fix ARI warning.
2982 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2983
2984 2010-04-20 Chris Moller <cmoller@redhat.com>
2985
2986 PR 10179
2987
2988 * symtab.c (rbreak_command): Added code to include a filename
2989 specification in the rbreak argument.
2990 * NEWS: Added a brief description of filename-qualified rbreak.
2991
2992 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 Fix crashes on dangling display expressions.
2995 * ada-lang.c (ada_operator_check): New function.
2996 (ada_exp_descriptor): Fill-in the field operator_check.
2997 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2998 * jv-lang.c (exp_descriptor_java): Likewise.
2999 * m2-lang.c (exp_descriptor_modula2): Likewise.
3000 * scm-lang.c (exp_descriptor_scm): Likewise.
3001 * parse.c (exp_descriptor_standard): Likewise.
3002 (operator_check_standard): New function.
3003 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
3004 * parser-defs.h (struct exp_descriptor): New field operator_check.
3005 (operator_check_standard, exp_uses_objfile): New declarations.
3006 * printcmd.c: Remove the inclusion of solib.h.
3007 (display_uses_solib_p): Remove the function.
3008 (clear_dangling_display_expressions): Call lookup_objfile_from_block
3009 and exp_uses_objfile instead of display_uses_solib_p.
3010 * solist.h (struct so_list) <objfile>: New comment.
3011 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
3012 * symtab.h (lookup_objfile_from_block): New declaration.
3013 (struct general_symbol_info) <obj_section>: Extend the comment.
3014
3015 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3016 Thiago Jung Bauermann <bauerman@br.ibm.com>
3017
3018 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
3019 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
3020 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
3021 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
3022 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
3023 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
3024 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
3025 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
3026 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
3027 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
3028 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
3029 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
3030 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
3031 Define, in case <ptrace.h> doesn't provide it.
3032 (booke_debug_info): New variable.
3033 (max_slots_number): Ditto.
3034 (hw_break_tuple): New struct.
3035 (thread_points): Ditto.
3036 (ppc_threads): New variable.
3037 (PPC_DEBUG_CURRENT_VERSION): New define.
3038 (have_ptrace_new_debug_booke): New function.
3039 (ppc_linux_check_watch_resources): Renamed to ...
3040 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
3041 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
3042 (booke_cmp_hw_point): New function.
3043 (booke_find_thread_points_by_tid): Ditto.
3044 (booke_insert_point): Ditto.
3045 (booke_remove_point): Ditto.
3046 (ppc_linux_insert_hw_breakpoint): Ditto.
3047 (ppc_linux_remove_hw_breakpoint): Ditto.
3048 (get_trigger_type): Ditto.
3049 (ppc_linux_insert_watchpoint): Handle BookE processors.
3050 (ppc_linux_remove_watchpoint): Ditto.
3051 (ppc_linux_new_thread): Ditto.
3052 (ppc_linux_thread_exit): New function..
3053 (ppc_linux_stopped_data_address): Handle BookE processors.
3054 (ppc_linux_watchpoint_addr_within_range): Ditto.
3055 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
3056 to_remove_hw_breakpoint fields of the target operations struct.
3057 Add observe for the thread_exit event.
3058
3059 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3060
3061 * i386-linux-nat.c (regmap): Removed.
3062 (fetch_register): Replace regmap with
3063 i386_linux_gregset_reg_offset.
3064 (store_register): Likewise.
3065 (supply_gregset): Likewise.
3066 (fill_gregset): Likewise.
3067
3068 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
3069 global.
3070
3071 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
3072
3073 2010-04-22 Chris Moller <cmoller@redhat.com>
3074
3075 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3076 method of popping recursion-detection stack with a method based on
3077 obstack_object_size(). (Similar to the PR9167 patch below, but for
3078 the static array obstack rather than the static member obstack.)
3079
3080 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3081
3082 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
3083 (_initialize_amd64_linux_nat): Replace
3084 amd64_linux_gregset64_reg_offset with
3085 amd64_linux_gregset_reg_offset.
3086
3087 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
3088 global.
3089
3090 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
3091
3092 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3093
3094 PR stabs/11479.
3095 * stabsread.c (set_length_in_type_chain): New function.
3096 (read_struct_type): Call set_length_in_type_chain function.
3097 (read_enum_type): Idem.
3098
3099 2010-04-21 Stan Shebs <stan@codesourcery.com>
3100 Nathan Sidwell <nathan@codesourcery.com>
3101
3102 * tracepoint.c (trace_save): Open in binary mode.
3103
3104 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3105
3106 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
3107 fields.
3108 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
3109 builtin_char32 fields.
3110 * printcmd.c (decode_format): Set char size to '\0'
3111 for strings unless explicit size is given.
3112 (print_formatted): Correct calculation of NEXT_ADDRESS
3113 for 16 or 32 bit strings.
3114 (do_examine): Do not force byte size for strings.
3115 Use builtin_char16 and builtin_char32 types to display
3116 16 or 32 bit-wide strings.
3117 (x_command): Set LAST_SIZE to 'b' for string type.
3118
3119 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3120
3121 PR corefiles/11523
3122 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3123 XCR0 first.
3124
3125 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3126 there is no .reg-xstate section.
3127 (i386_linux_core_read_description): Check XCR0 first.
3128
3129 2010-04-21 Mike Frysinger <vapier@gentoo.org>
3130
3131 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3132 for len <= 8.
3133
3134 2010-04-21 Chris Moller <cmoller@redhat.com>
3135
3136 PR 9167
3137 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3138 method of popping recursion-detection stack with a method based on
3139 obstack_object_size().
3140
3141 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3142
3143 PR pascal/11492.
3144 * p-valprint.c (pascal_val_print): Fix default printing of integer
3145 arrays.
3146
3147 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3148
3149 Fix compilation warning on gcc-4.1.2.
3150 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3151 local variable`pc' to zero.
3152
3153 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3154
3155 Implement thread support with core files on alpha-tru64.
3156 * dec-thread.c (dec_thread_find_new_threads): New function,
3157 extracted from resync_thread_list.
3158 (resync_thread_list): Add OPS parameter. Replace extracted-out
3159 code by call to dec_thread_find_new_threads.
3160 (dec_thread_wait): Update call to resync_thread_list.
3161 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3162
3163 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3164
3165 * ada-lang.c (value_pointer): New function.
3166 (make_array_descriptor): Call value_pointer to convert addresses to
3167 pointers.
3168
3169 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3170
3171 * rs6000-aix-tdep.c: #include exceptions.h.
3172 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3173 while reading the memory at ADDR, then ADDR cannot be a function
3174 descriptor.
3175
3176 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3177
3178 * ada-typeprint.c (ada_print_typedef): New function.
3179 * ada-lang.h (ada_print_typedef): Add declaration.
3180 * ada-lang.c (ada_language_defn): set la_print_typdef field
3181 to ada_print_typedef.
3182
3183 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3184
3185 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3186
3187 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3188
3189 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3190 (iterate_over_mappings): Adjust function profile. Add declaration.
3191 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3192 Adjust accordingly.
3193
3194 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3195
3196 * procfs.c (solib_mappings_callback): Move function up to avoid
3197 a compiler warning.
3198
3199 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3200
3201 * procfs.c (find_signalled_thread, find_stop_signal): Move
3202 these functions down to define them only when used.
3203
3204 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3205
3206 * valprint.c (common_val_print): Fix the value before extracting
3207 its contents.
3208 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3209 * ada-lang.h (ada_to_fixed_value): New function declaration.
3210 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3211 to avoid code duplication and fix a bug in the handling of
3212 fixed types contents.
3213
3214 2010-04-20 Tom Tromey <tromey@redhat.com>
3215
3216 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3217 (read_partial_die): Likewise.
3218 (dwarf_attr_name): Likewise.
3219
3220 2010-04-20 Chris Moller <cmoller@redhat.com>
3221
3222 PR 10867
3223
3224 * cp-valprint.c (global): Adding new static array recursion
3225 detection obstack.
3226 (cp_print_value_fields, cp_print_static_field): Added new static
3227 array recursion detection code.
3228
3229 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3230
3231 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3232 general-purpose register set should be 68 instead of 144.
3233 (i386_linux_sse_regset_sections): Likewise.
3234 (i386_linux_avx_regset_sections): Likewise.
3235
3236 2010-04-20 Stan Shebs <stan@codesourcery.com>
3237 Nathan Sidwell <nathan@codesourcery.com>
3238
3239 * dwarf2loc.c (struct axs_var_loc): New struct.
3240 (dwarf2_tracepoint_var_loc): New function.
3241 (dwarf2_tracepoint_var_access): New function.
3242 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3243 with DW_OP_piece.
3244 (locexpr_describe_location_piece): New function.
3245 (locexpr_describe_location_1): New function.
3246 (locexpr_describe_location): Call it, update signature.
3247 (loclist_describe_location): Rewrite to loop over locations,
3248 update signature.
3249 * symtab.h (struct symbol_computed_ops): Add address to
3250 describe_location arguments, return void.
3251 * printcmd.c (address_info): Get context PC, pass to computed
3252 location description.
3253 * tracepoint.c (scope_info): Ditto.
3254 * ax-gdb.c (trace_kludge): Export.
3255
3256 2010-04-20 Tom Tromey <tromey@redhat.com>
3257
3258 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3259 (struct dwarf2_cie) <segment_size>: New field.
3260 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3261 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3262 DW_FORM_exprloc.
3263 (read_attribute_value): Handle DW_FORM_flag_present,
3264 DW_FORM_sec_offset, DW_FORM_exprloc.
3265 (dump_die_shallow): Likewise.
3266 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3267 (dwarf2_const_value): Handle DW_FORM_exprloc.
3268 (attr_form_is_block): Likewise.
3269 (struct line_header) <maximum_ops_per_instruction>: New field.
3270 (dwarf_decode_line_header): Set new field.
3271 (dwarf_decode_lines): Handle new field.
3272
3273 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3274
3275 * f-exp.y: Add new production to recognize the `logical*8' type.
3276 (LOGICAL_S8_KEYWORD): New token.
3277 * f-lang.c (enum f_primitive_types)
3278 <f_primitive_type_logical_s8>: New field.
3279 (f_language_arch_info): Handling `logical*8' type.
3280 (build_fortran_types): Building `logical*8' type.
3281 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3282
3283 2010-04-19 Doug Evans <dje@google.com>
3284
3285 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3286 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3287 (pipe_close): Ditto.
3288
3289 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3290
3291 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3292
3293 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3294
3295 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3296 type to void function.
3297
3298 2010-04-19 Stan Shebs <stan@codesourcery.com>
3299 Vladimir Prus <vladimir@codesourcery.com>
3300
3301 * tracepoint.c (tfind_1): Add missing newline, report exit from
3302 tfind mode as such.
3303 * target.c (update_current_target): Make default
3304 to_trace_find return -1.
3305
3306 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3307
3308 * objc-lang.c (find_methods): Move symname check up.
3309
3310 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3311
3312 * ada-lang.c (print_recreate_exception)
3313 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3314 not "catch unhandled".
3315
3316 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3317
3318 PR breakpoints/8554.
3319
3320 Implement `save-breakpoints'.
3321
3322 * breakpoint.c (save_cmdlist): New.
3323 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3324 to save_cmdlist.
3325 (print_recreate_catch_fork): New.
3326 (catch_fork_breakpoint_ops): Install it.
3327 (print_recreate_catch_vfork): New.
3328 (catch_vfork_breakpoint_ops): Install it.
3329 (print_recreate_catch_syscall): New.
3330 (catch_syscall_breakpoint_ops): Install it.
3331 (print_recreate_catch_exec): New.
3332 (catch_exec_breakpoint_ops): Install it.
3333 (print_recreate_exception_catchpoint): New.
3334 (gnu_v3_exception_catchpoint_ops): Install it.
3335 (save_breakpoints): New, based on tracepoint_save_command, but
3336 handle all breakpoint types.
3337 (save_breakpoints_command): New.
3338 (tracepoint_save_command): Rename to...
3339 (save_tracepoints_command): ... this, and reimplement using
3340 save_breakpoints.
3341 (save_command): New.
3342 (_initialize_breakpoints): Install the "save" command prefix.
3343 Install the "save breakpoints" command. Make "save-tracepoints" a
3344 deprecated alias for "save tracepoints".
3345 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3346 * ada-lang.c (print_recreate_exception): New.
3347 (print_recreate_catch_exception): New.
3348 (catch_exception_breakpoint_ops): Install it.
3349 (print_recreate_catch_exception_unhandled): New.
3350 (catch_exception_unhandled_breakpoint_ops): Install it.
3351 (print_recreate_catch_assert): New.
3352 (catch_assert_breakpoint_ops): Install it.
3353
3354 * NEWS: Mention the new `save breakpoints' command. Mention the
3355 new `save tracepoints' alias and that `save-tracepoints' is now
3356 deprecated.
3357
3358 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3359
3360 PR tui/9217
3361
3362 * tui/tui-out.c: Include cli-out.h.
3363 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3364 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3365 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3366 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3367 declarations.
3368 (struct ui_out_data): Rename to...
3369 (struct tui_ui_out_data): ... this. Remove `stream' and
3370 `suppress_output' fields, and inherit cli_ui_out_data.
3371 (tui_out_data): New typedef.
3372 (tui_ui_out_impl): Don't initialize fields staticaly.
3373 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3374 (tui_begin, tui_end): Delete.
3375 (tui_field_int): Adjust to delegate most work to the base type.
3376 (tui_field_skip): Delete.
3377 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3378 delegate most work to the base type.
3379 (tui_spaces): Delete.
3380 (tui_text): Adjust to delegate most work to the base type.
3381 (tui_message): Delete.
3382 (tui_wrap_hint): Delete.
3383 (tui_flush): Delete.
3384 (out_field_fmt): Delete.
3385 (field_separator): Delete.
3386 (tui_out_new): Adjust to initialize the base type.
3387 (_initialize_tui_out): Initialize tui_ui_out_impl.
3388 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3389 cli_ui_out_data.
3390 (cli_out_data): Adjust.
3391 (cli_ui_out_impl): Make extern.
3392 (cli_table_header, cli_field_int, cli_field_skip): Use
3393 uo_field_string instead of cli_field_string.
3394 (cli_redirect): Adjust to use cli_out_data.
3395 (cli_out_data_ctor): New.
3396 (cli_out_new): Use it.
3397 * cli-out.h (struct ui_file): Remove forward declaration.
3398 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3399 (cli_ui_out_impl): Declare.
3400 (cli_out_data_ctor): Declare.
3401 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3402 (uo_field_string): No longer static.
3403 (ui_out_data): Change return type to void pointer.
3404 (ui_out_new): Change `data' parameter type to void pointer.
3405 * ui-out.h (struct ui_out_data): Don't forward declare.
3406 (ui_out_data): Change return type to void pointer.
3407 (ui_out_new): Change `data' parameter type to void pointer.
3408 (uo_field_string): Declare.
3409
3410 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3411
3412 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3413 instead of always false.
3414
3415 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3416
3417 PR corefiles/11511
3418 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3419 orig_rax.
3420
3421 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3422
3423 * breakpoint.c (watchpoints_triggered): Use
3424 is_hardware_watchpoint.
3425 (watchpoints_triggered): Ditto.
3426 (bpstat_check_location): Use is_watchpoint and
3427 is_hardware_watchpoint.
3428 (bpstat_check_watchpoint): Use is_watchpoint and
3429 is_hardware_watchpoint.
3430 (bpstat_stop_status): Fix comment.
3431 (user_settable_breakpoint): Use is_watchpoint.
3432 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3433 (disable_watchpoints_before_interactive_call_start): Use
3434 is_watchpoint.
3435 (enable_watchpoints_after_interactive_call_stop): Use
3436 is_watchpoint.
3437 (clear_command): Use is_watchpoint.
3438 (do_enable_breakpoint): Use is_watchpoint.
3439
3440 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3441
3442 * solib-frv.c (enable_break1_done): Delete.
3443 (enable_break2): Do not check enable_break1_done. Move the
3444 enable_break2_done setting and call to
3445 remove_solib_event_breakpoints() to the end. Return without
3446 warning when the contents of _dl_debug_addr are 0.
3447 (enable_break): Do not set enable_break1_done.
3448 (frv_clear_solib): Likewise.
3449
3450 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3451
3452 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3453 instead of an error if no PLT entry is found. Return a
3454 potentially useful result.
3455 (m32c_m16c_pointer_to_address): Add code to search for function
3456 address when no .plt entry is found.
3457
3458 2010-04-16 Stan Shebs <stan@codesourcery.com>
3459
3460 * tracepoint.c (trace_variable_command): Run a cleanup.
3461
3462 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3463
3464 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3465
3466 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3467
3468 Support for Windows OS Thread Information Block.
3469 * NEWS: Document new feature.
3470 * remote.c (PACKET_qGetTIBAddr): New enum element.
3471 (remote_get_tib_address): New function.
3472 (init_remote_ops): Set to_get_tib_address field
3473 to remote_get_tib_address.
3474 (_initialize_remote): Add add_packet_config_cmd
3475 for PACKET_qGetTIBAddr.
3476 * target.c (update_current_target): Set default value for
3477 new to_get_tib_address field.
3478 * target.h (target_ops): New field to_get_tib_address.
3479 (target_get_tib_address): New macro.
3480 * windows-nat.c (thread_info): Add thread_local_base field.
3481 (windows_add_thread): Add tlb argument of type 'void *'.
3482 (fake_create_process): Adapt windows_add_thread call.
3483 (get_windows_debug_event): Idem.
3484 (windows_get_tib_address): New function.
3485 (init_windows_ops): Set to_get_tib_address field
3486 to remote_get_tib_address.
3487 (_initialize_windows_nat): Replace info_w32_cmdlist
3488 initialization by a call to init_w32_command_list.
3489 (info_w32_command, info_w32_cmdlist): Removed from here...
3490 to windows-tdep.c file.
3491 * windows-tdep.h (info_w32_cmdlist): Declare.
3492 (init_w32_command_list): New external function
3493 declaration.
3494 * windows-tdep.c: Add several headers.
3495 (info_w32_cmdlist): to here, made global.
3496 (thread_information_32): New struct.
3497 (thread_information_64): New struct.
3498 (TIB_NAME): New char array.
3499 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3500 (maint_display_all_tib): New static variable.
3501 (windows_get_tlb_type): New function.
3502 (tlb_value_read, tlb_value_write): New functions.
3503 (tlb_value_funcs): New static struct.
3504 (tlb_make_value): New function.
3505 (display_one_tib): New function.
3506 (display_tib): New function.
3507 (show_maint_show_all_tib):New function.
3508 (info_w32_command): Moved from windows-nat.c.
3509 (init_w32_command_list): New function.
3510 (_initialize_windows_tdep): New function.
3511 New "maint set/show show-all-tib" command
3512 New "$_tlb" internal variable.
3513
3514 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3515
3516 * tui/tui-regs.c (tui_display_register): Add comment about
3517 a couple of casts.
3518 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3519
3520 2010-04-15 Stan Shebs <stan@codesourcery.com>
3521
3522 * frame.c: Include tracepoint.h.
3523 (get_current_frame): Allow a trace frame to be an alternate source
3524 of stack frame data.
3525 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3526 it won't succeed.
3527
3528 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3529
3530 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3531 flags.
3532 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3533
3534 2010-04-15 Doug Evans <dje@google.com>
3535
3536 * NEWS: Add entry for python program space support.
3537 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3538 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3539 (py-progspace.o): New rule.
3540 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3541 function.
3542 (find_pretty_printer_from_progspace): New function.
3543 (find_pretty_printer_from_gdb): New function.
3544 (find_pretty_printer): Rewrite.
3545 * python/py-progspace.c: New file.
3546 * python/python-internal.h (program_space): Add forward decl.
3547 (pspace_to_pspace_object, pspy_get_printers): Declare.
3548 (gdbpy_initialize_pspace): Declare.
3549 * python/python.c: #include "progspace.h".
3550 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3551 (_initialize_python): Call gdbpy_initialize_pspace.
3552 (GdbMethods): Add current_progspace, progspaces.
3553
3554 Add -s option to source command.
3555 * NEWS: Document new option.
3556 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3557 Delete from_tty and cleanupp args. Split filep arg into file and
3558 full_pathp. New arg search_path.
3559 (source_script_from_stream): New function.
3560 (source_script_with_search): New function.
3561 (source_script): Rewrite.
3562 (source_command): Parse "-s" option.
3563 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3564 * python/python.c (source_python_script): Make file arg a const char *.
3565 Don't call fclose, leave for caller.
3566 * python/python.h (source_python_script): Update.
3567
3568 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3569 Pedro Alves <pedro@codesourcery.com>
3570
3571 Avoid rereading shared libraries that haven't changed.
3572
3573 * solib.c (free_so_symbols): New function, from ...
3574 (free_so): ... here. Call it.
3575 (solib_read_symbols): Don't warn here if symbols have already been
3576 loaded.
3577 (solib_add): Warn here instead, if a pattern was specified.
3578 (reload_shared_libraries_1): New.
3579 (reload_shared_libraries): Rewrite to not fetch the library list.
3580
3581 2010-04-14 Doug Evans <dje@google.com>
3582
3583 * source.c (openp): Strip DOS drive letter if present before
3584 concatenating string to search path.
3585
3586 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3587
3588 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3589 * objfiles.c (gdb_bfd_close_or_warn): New.
3590 * corelow.c: Include objfiles.h
3591 (core_close): Use gdb_bfd_close_or_warn.
3592 * elfread.c (build_id_verify): Ditto.
3593 * exec.c (exec_close, exec_close_1): Ditto.
3594
3595 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3596 Pedro Alves <pedro@codesourcery.com>
3597
3598 Group errors for many missing shared libraries.
3599
3600 * solist.h (struct so_list): Remove from_tty.
3601 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3602 (solib_map_sections): Take so_list argument. Return 0 if we
3603 failed to open a BFD. Add target sections here.
3604 (symbol_add_stub): Delete.
3605 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3606 not from_tty copied from the so_list. Don't warn a second time
3607 for a missing library.
3608 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3609 add to the section table here. Print out a single warning for all
3610 missing libraries.
3611 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3612 flags.
3613
3614 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3615
3616 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3617 error/warning messages. Capitalize and use complete sentences.
3618 (blpy_block_syms_iternext): Likewise.
3619 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3620 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3621 (frame_info_to_frame_object, frapy_read_var)
3622 (gdbpy_frame_stop_reason_string): Likewise.
3623 * python/py-lazy-string.c (stpy_convert_to_value)
3624 (gdbpy_create_lazy_string_object): Likewise.
3625 * python/py-objfile.c (objfpy_set_printers): Likewise.
3626 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3627 * python/python.c (parameter_to_python): Likewise.
3628 * python/py-type.c (typy_range, typy_target): Likewise.
3629 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3630 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3631
3632
3633 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3634
3635 PR python/11381
3636
3637 * python/py-prettyprint.c (pretty_print_one_value): Test for
3638 Py_None.
3639 (print_string_repr): Test for Py_None. Set flags accordingly.
3640 Return value depending on return type.
3641 (print_children): Take a value indicating whether data was printed
3642 before this function was called. Alter output accordingly.
3643 (apply_val_pretty_printer): Capture return value from
3644 print_string_repr and pass to print_children.
3645
3646 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3647
3648 PR corefiles/11481
3649 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3650 register note sections.
3651 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3652 New variables.
3653 (i386_linux_init_abi): Install list of supported register note
3654 sections that matches the target description.
3655
3656 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3657
3658 * remote.c (remote_get_noisy_reply): Don't error out on empty
3659 replies.
3660 (remote_start_remote): Update and merge tracepoints and trace
3661 state variables as long as the target supports tracepoints.
3662 (remote_trace_init): Fix prototype.
3663 (remote_download_trace_state_variable): Validate reply.
3664 (remote_trace_set_readonly_regions): Fix prototype.
3665 (remote_trace_start): Fix prototype. Check for empty reply.
3666 (remote_get_trace_status): Small cleanup.
3667 (remote_trace_stop): Fix prototype. Check for empty reply.
3668 (remote_trace_find): Check for empty reply.
3669 (remote_save_trace_data): Validate reply.
3670 (remote_set_disconnected_tracing): Check for empty reply, and
3671 validate reply.
3672 (remote_set_circular_trace_buffer): Ditto.
3673
3674 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3675
3676 Suppress unused value warning during compilation.
3677 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3678 calls to void.
3679 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3680
3681 2010-04-12 Stan Shebs <stan@codesourcery.com>
3682
3683 * tracepoint.c (tfile_xfer_partial): Check read result.
3684
3685 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3686
3687 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3688 * remote-sim.c (gdbsim_files_info): Likewise.
3689
3690 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3691
3692 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3693 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3694 variable.
3695 (fetch_vfp_registers): New function to fetch VFP registers.
3696 (store_vfp_registers): New function to store VFP registers.
3697 (arm_linux_fetch_inferior_registers): Add support for VFP
3698 registers.
3699 (arm_linux_store_inferior_registers): Likewise.
3700 (arm_linux_read_description): Likewise.
3701 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3702 until we need it.
3703
3704 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3705
3706 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3707 tdep.
3708 (amd64_collect_xstateregset): Likewise.
3709
3710 2010-04-09 Stan Shebs <stan@codesourcery.com>
3711
3712 * tracepoint.c (trace_status_mi): Report frames created.
3713
3714 * tracepoint.c (trace_dump_command): Include default-collect
3715 expressions.
3716
3717 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3718
3719 * symtab.c (find_function_start_sal): Never return SAL pointing
3720 before function start address, even if line info is missing.
3721
3722 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3723
3724 * NEWS: Mention tracepoints support.
3725
3726 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3727
3728 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3729 circular trace buffer statuses.
3730
3731 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3732
3733 * config/djgpp/fnchange.lst: Fix typo in translations for
3734 symbol-without-target_section.exp and symbol-without-target_section.c.
3735
3736 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3737
3738 * breakpoint.c (condition_command): Pass condition expression to
3739 set_breakpoint_condition stripped from breakpoint number.
3740
3741 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3742 Thiago Jung Bauermann <bauerman@br.ibm.com>
3743 Tom Tromey <tromey@redhat.com>
3744
3745 * breakpoint.c (condition_command): Simplify. Move condition
3746 setting code to ...
3747 (set_breakpoint_condition): ... here. New function.
3748 * breakpoint.h (set_breakpoint_condition): Declare.
3749 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3750 (SUBDIR_PYTHON_SRCS): Likewise.
3751 (py-breakpoint.o): New rule.
3752 * python/py-breakpoint.c: New file.
3753 * python/python-internal.h (gdbpy_breakpoints)
3754 (gdbpy_initialize_breakpoints): Declare.
3755 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3756
3757 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3758
3759 * regformats/regdat.sh: Include server.h. Don't include
3760 regcache.h.
3761
3762 2010-04-08 Stan Shebs <stan@codesourcery.com>
3763 Pedro Alves <pedro@codesourcery.com>
3764
3765 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3766 and circular_buffer.
3767 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3768 * tracepoint.c (trace_status_command): Display target's status for
3769 disconnected tracing and circular buffer.
3770 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3771 query for non-disconnected-tracing case, remove the stop_tracing
3772 call.
3773 (tfile_open): Clear disconnected and circular buffer status.
3774 (trace_save): Save disconnected and circular buffer status.
3775 (parse_trace_status): Parse disconnected and circular buffer status,
3776 also recognize disconnected as a stop reason.
3777 * remote.c (remote_set_disconnected_tracing): Only set
3778 QTDisconnected if the remote end supports disconnected tracing.
3779 Warn otherwise, if trying to enable disconnected tracing.
3780 * infcmd.c (detach_command): Update disconnect_tracing call.
3781 * cli/cli-cmds.c (quit_command): Ditto.
3782
3783 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3784
3785 * i387-tdep.c (i387_collect_xsave): Replace abort with
3786 internal_error.
3787
3788 2010-04-08 Stan Shebs <stan@codesourcery.com>
3789
3790 * breakpoint.c (default_collect_info): New function.
3791 (breakpoints_info): Call it.
3792 (maintenance_info_breakpoints): Ditto.
3793 (tracepoints_info): Ditto.
3794
3795 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3796
3797 * i387-tdep.c (i387_collect_xsave): Re-indent.
3798
3799 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3800
3801 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3802 if HAVE_PTRACE_GETFPXREGS is defined.
3803 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3804 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3805
3806 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3807 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3808 if .reg-xfp section doesn't exist.
3809 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3810
3811 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3812
3813 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3814 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3815 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3816 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3817 (i386_gdbarch_init): Update comments.
3818 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3819
3820 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3821
3822 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3823
3824 * features/Makefile (i386/i386-mmx-expedite): New.
3825 (i386/i386-mmx-linux-expedite): Likewise.
3826 ($(outdir)/i386/i386-mmx.dat): Likewise.
3827 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3828
3829 * features/i386/i386-mmx-linux.c: New.
3830 * features/i386/i386-mmx-linux.xml: Likewise.
3831 * features/i386/i386-mmx.c: Likewise.
3832 * features/i386/i386-mmx.xml: Likewise.
3833 * regformats/i386/i386-mmx-linux.dat: Likewise.
3834 * regformats/i386/i386-mmx.dat: Likewise.
3835
3836 * features/Makefile (WHICH): Add i386/i386-mmx and
3837 i386/i386-mmx-linux.
3838
3839 2010-04-08 Doug Evans <dje@google.com>
3840
3841 * source.c (openp): Skip $cdir in PATH.
3842
3843 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3844
3845 PR python/11417
3846 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3847 a NULL address.
3848 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3849 address and a zero length.
3850
3851 2010-04-08 Hui Zhu <teawater@gmail.com>
3852
3853 * i386-tdep.c (i386_process_record): Add support for insn
3854 rdtsc.
3855
3856 2010-04-07 Doug Evans <dje@google.com>
3857
3858 * python/python.c (source_python_script): Use ensure_python_env
3859 to prepare environment for script.
3860
3861 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3862
3863 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3864 <sys/uio.h> and "i386-xstate.h".
3865 (PTRACE_GETREGSET): New.
3866 (PTRACE_SETREGSET): Likewise.
3867 (have_ptrace_getregset): Likewise.
3868 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3869 registers.
3870 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3871 registers.
3872 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3873 (amd64_linux_store_inferior_registers): Likewise.
3874 (amd64_linux_read_description): Check and enable AVX target
3875 descriptions.
3876
3877 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3878 and "features/i386/amd64-avx-linux.c".
3879 (amd64_linux_regset_sections): New.
3880 (amd64_linux_core_read_description): Check and enable AVX
3881 target description.
3882 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3883 set_gdbarch_core_regset_sections.
3884 (_initialize_amd64_linux_tdep): Call
3885 initialize_tdesc_amd64_avx_linux.
3886
3887 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3888 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3889 (tdesc_amd64_avx_linux): New.
3890 (amd64_linux_update_xstateregset): Likewise.
3891
3892 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3893 (amd64_ymm_names): New.
3894 (amd64_ymmh_names): Likewise.
3895 (amd64_register_name): Likewise.
3896 (amd64_supply_xstateregset): Likewise.
3897 (amd64_collect_xstateregset): Likewise.
3898 (amd64_supply_xsave): Likewise.
3899 (amd64_collect_xsave): Likewise.
3900 (AMD64_NUM_REGS): Removed.
3901 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3902 %xmmN if AVX is available.
3903 (amd64_pseudo_register_name): Support pseudo YMM registers.
3904 (amd64_regset_from_core_section): Support .reg-xstate section.
3905 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3906 and ymm0h_regnum. Call set_gdbarch_register_name.
3907 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3908
3909 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3910 AMD64_YMM15H_REGNUM.
3911 (AMD64_NUM_REGS): New.
3912 (amd64_supply_xsave): Likewise.
3913 (amd64_collect_xsave): Likewise.
3914 (amd64_register_name): Removed.
3915 (amd64_register_type): Likewise.
3916
3917 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3918
3919 * i387-tdep.c: Include "i386-xstate.h".
3920 (XSAVE_XSTATE_BV_ADDR): New.
3921 (xsave_avxh_offset): Likewise.
3922 (XSAVE_AVXH_ADDR): Likewise.
3923 (i387_supply_xsave): Likewise.
3924 (i387_collect_xsave): Likewise.
3925
3926 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3927 (I387_YMM0H_REGNUM): Likewise.
3928 (I387_YMMENDH_REGNUM): Likewise.
3929 (i387_supply_xsave): Likewise.
3930 (i387_collect_xsave): Likewise.
3931
3932 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3933
3934 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3935 <sys/uio.h> and "i386-xstate.h".
3936 (PTRACE_GETREGSET): New.
3937 (PTRACE_SETREGSET): Likewise.
3938 (fetch_xstateregs): Likewise.
3939 (store_xstateregs): Likewise.
3940 (GETXSTATEREGS_SUPPLIES): Likewise.
3941 (regmap): Include 8 upper YMM registers.
3942 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3943 state.
3944 (i386_linux_store_inferior_registers): Likewise.
3945 (i386_linux_read_description): Check and enable AVX target
3946 descriptions.
3947
3948 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3949 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3950 (i386_linux_regset_sections): Add ".reg-xstate".
3951 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3952 (i386_linux_core_read_xcr0): New.
3953 (i386_linux_core_read_description): Check and enable AVX target
3954 description.
3955 (i386_linux_init_abi): Set xsave_xcr0_offset.
3956 (_initialize_i386_linux_tdep): Call
3957 initialize_tdesc_i386_avx_linux.
3958
3959 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3960 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3961 (i386_linux_core_read_xcr0): New.
3962 (tdesc_i386_avx_linux): Likewise.
3963 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3964
3965 * i386-tdep.c: Include "i386-xstate.h" and
3966 "features/i386/i386-avx.c".
3967 (i386_ymm_names): New.
3968 (i386_ymmh_names): Likewise.
3969 (i386_ymmh_regnum_p): Likewise.
3970 (i386_ymm_regnum_p): Likewise.
3971 (i386_xmm_regnum_p): Likewise.
3972 (i386_register_name): Likewise.
3973 (i386_ymm_type): Likewise.
3974 (i386_supply_xstateregset): Likewise.
3975 (i386_collect_xstateregset): Likewise.
3976 (i386_sse_regnum_p): Removed.
3977 (i386_pseudo_register_name): Support pseudo YMM registers.
3978 (i386_pseudo_register_type): Likewise.
3979 (i386_pseudo_register_read): Likewise.
3980 (i386_pseudo_register_write): Likewise.
3981 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3982 %xmmN if AVX is available.
3983 (i386_regset_from_core_section): Support .reg-xstate section.
3984 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3985 (i386_process_record): Replace i386_sse_regnum_p with
3986 i386_xmm_regnum_p.
3987 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3988 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3989 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3990 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3991 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3992 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3993 Set ymm0_regnum.
3994 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3995
3996 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3997 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3998 i386_ymm_type.
3999 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
4000 (I386_AVX_NUM_REGS): New.
4001 (i386_xmm_regnum_p): Likewise.
4002 (i386_ymm_regnum_p): Likewise.
4003 (i386_ymmh_regnum_p): Likewise.
4004
4005 * common/i386-xstate.h: New.
4006
4007 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4008
4009 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
4010
4011 * features/Makefile (WHICH): Add i386/i386-avx,
4012 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
4013 (i386/i386-avx-expedite): New.
4014 (i386/i386-avx-linux-expedite): Likewise.
4015 (i386/x86-64-avx-expedite):Likewise.
4016 (i386/x86-64-avx-linux-expedite): Likewise.
4017 ($(outdir)/i386/i386-avx.dat): New dependency.
4018 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
4019 ($(outdir)/i386/x86-avx-64.dat): Likewise.
4020 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
4021
4022 * features/i386/32bit-avx.xml: New.
4023 * features/i386/64bit-avx.xml: Likewise.
4024 * features/i386/i386-avx-linux.c: Likewise.
4025 * features/i386/i386-avx-linux.xml: Likewise.
4026 * features/i386/i386-avx.c: Likewise.
4027 * features/i386/i386-avx.xml: Likewise.
4028 * features/i386/x86-64-avx-linux.c: Likewise.
4029 * features/i386/x86-64-avx-linux.xml: Likewise.
4030 * features/i386/x86-64-avx.c: Likewise.
4031 * features/i386/x86-64-avx.xml: Likewise.
4032 * regformats/i386/i386-avx-linux.dat: Likewise.
4033 * regformats/i386/i386-avx.dat: Likewise.
4034 * regformats/i386/x86-64-avx-linux.dat: Likewise.
4035 * regformats/i386/x86-64-avx.dat: Likewise.
4036
4037 2010-04-07 Doug Evans <dje@google.com>
4038
4039 * top.c (source_file_name): Make const char *.
4040 * top.h (source_file_name): Update.
4041 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
4042 const char *.
4043 (script_from_file): Change `file' arg to const char *.
4044 * cli/cli-script.h (script_from_file): Update.
4045
4046 2010-04-06 Doug Evans <dje@google.com>
4047
4048 * cli/cli-cmds.c (source_command): Run cleanups.
4049
4050 2010-04-06 Stan Shebs <stan@codesourcery.com>
4051
4052 * defs.h (char_ptr): Move typedef here from...
4053 * ada-lang.c (char_ptr): Remove.
4054 * charset.c (char_ptr): Remove.
4055 * tracepoint.h (struct uploaded_string): Remove.
4056 (struct uploaded_tp): Use vectors for string arrays.
4057 * tracepoint.c (trace_save): Use vectors of actions.
4058 (parse_tracepoint_definition): Ditto.
4059 (get_uploaded_tp): Clear vectors.
4060 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
4061 (next_cmd): Change to an int.
4062 (read_next_cmd): Use vector of command strings.
4063
4064 2010-04-06 Doug Evans <dje@google.com>
4065
4066 * top.h (source_script, cd_command): Delete.
4067 * main.c: #include "cli/cli-cmds.h"
4068
4069 2010-04-06 Kevin Buettner <kevinb@redhat.com>
4070
4071 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
4072 type in bytes, not bits.
4073
4074 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4075
4076 * stabsread.c (define_symbol): Add support for char
4077 and string constants.
4078
4079 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4080
4081 Remove remaining "%ll" uses.
4082 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
4083 hex_string call.
4084 * rs6000-nat.c (rs6000_ptrace64): Idem.
4085 * solib-pa64.c (pa64_current_sos): Idem.
4086 * solib-spu.c (spu_current_sos): Idem.
4087 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
4088 plongest call.
4089 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
4090 phex (VAR, 8) call.
4091 * sh64-tdep.c (sh64_show_media_regs): Idem.
4092
4093 2010-04-05 Stan Shebs <stan@codesourcery.com>
4094
4095 * tracepoint.c: Include gdbcore.h.
4096 (tfile_xfer_partial): Return partial results, also try reading
4097 from executable.
4098 (tfile_has_all_memory): New function.
4099 (init_tfile_ops): Use it.
4100
4101 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
4102
4103 PR gdb/10736:
4104 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
4105 the changes in data-directory.
4106 (init_sysinfo): Reload the syscall XML file if the data-directory
4107 has changed.
4108
4109 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 Code cleanup.
4112 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4113
4114 2010-04-04 Stan Shebs <stan@codesourcery.com>
4115 Nathan Sidwell <nathan@codesourcery.com>
4116
4117 * breakpoint.c (breakpoint_1): Add filter argument, return number of
4118 breakpoints printed.
4119 (is_hardware_watchpoint): Make argument const.
4120 (is_watchpoint): Ditto.
4121 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4122 use it everywhere.
4123 (breakpoints_info): Pass NULL to breakpoint_1.
4124 (maintenance_info_breakpoints): Ditto.
4125 (watchpoints_info): New function.
4126 (tracepoints_info): Use breakpoint_1 filter.
4127 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4128 (_initialize_breakpoint): Make "info watchpoints" its own command.
4129 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4130 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4131
4132 2010-04-04 Stan Shebs <stan@codesourcery.com>
4133
4134 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4135
4136 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4137
4138 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4139 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4140
4141 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4144 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4145
4146 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4147
4148 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4149 code form.
4150
4151 2010-04-02 Hui Zhu <teawater@gmail.com>
4152
4153 * i386-tdep.c (OT_DQUAD): New enum.
4154 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4155 SSE3, SSSE3 and SSE4.
4156
4157 2010-04-02 Hui Zhu <teawater@gmail.com>
4158
4159 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4160 "*addr = 0".
4161
4162 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4163
4164 * tracepoint.c (trace_dump_actions): New, factored out from
4165 trace_dump_command, and adjusted to recurse into while-stepping's
4166 action list.
4167 (trace_dump_command): Use it.
4168
4169 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4170
4171 * breakpoint.h (struct counted_command_line): Moved definition to
4172 breakpoint.c, and forward declare.
4173 (breakpoint_commands): Declare.
4174 * breakpoint.c (struct counted_command_line): Moved here.
4175 (breakpoint_commands): New.
4176 * tracepoint.c (encode_actions): Use breakpoint_commands.
4177 * remote.c (remote_download_tracepoint): Ditto.
4178
4179 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4180
4181 * remote.c (remote_parse_stop_reply): Use hex_string instead
4182 of phex_nz for error.
4183
4184 2010-04-01 Stan Shebs <stan@codesourcery.com>
4185 Nathan Sidwell <nathan@codesourcery.com>
4186
4187 * tracepoint.h (enum actionline_type): Remove.
4188 (validate_actionline): Change return to void.
4189 * tracepoint.c (report_agent_reqs_errors): New function.
4190 (validate_actionline): Call it, change return to void, report errors
4191 more consistently.
4192 (collect_symbol): Call report_agent_reqs_errors.
4193 (encode_actions_1): Ditto.
4194 (encode_actions): Don't expect a result from validate_actionline.
4195
4196 2010-04-01 Stan Shebs <stan@codesourcery.com>
4197
4198 * tracepoint.c (trace_start_command): Confirm if trace is running.
4199 (trace_stop_command): Error if trace not running.
4200
4201 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4202
4203 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4204 (AMD64_NUM_LOWER_BYTE_REGS): New.
4205 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4206 (amd64_pseudo_register_write): Likewise.
4207 (amd64_init_abi): Set num_byte_regs to 20.
4208
4209 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4210
4211 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4212 (prev_breakpoint_count): New.
4213 (set_breakpoint_count): Adjust.
4214 (rbreak_start_breakpoint_count): New.
4215 (start_rbreak_breakpoints): Adjust.
4216 (end_rbreak_breakpoints): Adjust.
4217 (struct commands_info) <arg>: New field.
4218 (do_map_commands_command): Tweak output to include breakpoint spec
4219 range.
4220 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4221 ARG was empty on entry. Set INFO's arg.
4222 (create_breakpoint): Adjust.
4223
4224 * NEWS: Clarify `commands' changes.
4225
4226 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4227
4228 * tracepoint.c: Include stack.h.
4229 (struct add_local_symbols_data): New.
4230 (do_collect_symbol): New.
4231 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4232 iterate_over_block_local_vars.
4233 * stack.c (print_block_frame_locals): Rewrite as ...
4234 (iterate_over_block_locals): ... this. Take a callback function
4235 pointer and generic data pointer, and call that instead of
4236 print_variable_and_value.
4237 (struct print_variable_and_value_data): New.
4238 (do_print_variable_and_value): New.
4239 (iterate_over_block_local_vars): New, abstracted out from
4240 print_frame_local_vars.
4241 (print_frame_local_vars): Rewrite using
4242 iterate_over_block_local_vars.
4243 (iterate_over_block_arg_vars): New, abstracted out from
4244 print_frame_arg_vars.
4245 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4246 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4247 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4248
4249 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4250
4251 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4252 instructions. Use the PC+4 if the base of the TBB or TBH is the
4253 PC register.
4254
4255 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4256
4257 Fix crash on reading wrong function declaration DWARF.
4258 * dwarf2read.c (read_subroutine_type): New variable void_type.
4259 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4260 more close to their use.
4261
4262 2010-03-31 Stan Shebs <stan@codesourcery.com>
4263
4264 * breakpoint.c (tracepoint_save_command): Include variables,
4265 conditionals, tracepoint types, and default-collect.
4266 * tracepoint.c (save_trace_state_variables): New function.
4267 * tracepoint.h (save_trace_state_variables): Declare it.
4268
4269 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4270
4271 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4272
4273 2010-03-30 Keith Seitz <keiths@redhat.com>
4274
4275 * c-typeprint.c (c_type_print_args): Don't print "void"
4276 for java, regardless of whether it is TYPE_PROTOTYPED.
4277 Use the passed-in language instead of current_language.
4278 (c_type_print_varspec_suffix): Use current_language instead
4279 of assuming language_c.
4280 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4281 any return type specifier from the physname.
4282
4283 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4284
4285 * tui/tui-interp.c (tui_is_toplevel): New.
4286 (tui_init): Set it.
4287 (tui_allowed_p): New.
4288 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4289 enabling it.
4290 * tui/tui.h (tui_allowed_p): Declare.
4291
4292 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4293
4294 * serial.h: Include winsock2.h before windows.h.
4295
4296 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4297
4298 * NEWS: Mention xmlRegisters= in qSupported packet.
4299
4300 * i386-tdep.c: Include "remote.h".
4301 (_initialize_i386_tdep): Call register_remote_support_xml.
4302
4303 * remote.c (remote_support_xml): New.
4304 (register_remote_support_xml): Likewise.
4305 (remote_query_supported_append): Likewise.
4306 (remote_query_supported): Support remote_support_xml.
4307
4308 * remote.h (register_remote_support_xml): New.
4309
4310 2010-03-29 Stan Shebs <stan@codesourcery.com>
4311
4312 * tracepoint.c (trace_find_line_command): Remove dead code.
4313
4314 * tracepoint.h (struct uploaded_string): New struct.
4315 (struct uploaded_tp): New fields for source strings.
4316 * breakpoint.c (this_utp, next_cmd): New globals.
4317 (read_uploaded_action): New function.
4318 (create_tracepoint_from_upload): Fill in more parts
4319 of a tracepoint.
4320 * tracepoint.c (encode_source_string): New function.
4321 (trace_save): Write out source strings, fix error checks.
4322 (parse_tracepoint_definition): Add source string parsing.
4323 * remote.c (PACKET_TracepointSource): New packet type.
4324 (remote_download_command_source): New function.
4325 (remote_download_tracepoint): Download source pieces also.
4326 (_initialize_remote): Add packet config command.
4327
4328 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4329 expression handler.
4330
4331 * tracepoint.c (start_tracing): Check tracepoints before sending
4332 commands to target, don't start if all tracepoints disabled.
4333
4334 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4335
4336 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4337
4338 2010-03-26 Stan Shebs <stan@codesourcery.com>
4339
4340 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4341
4342 2010-03-26 Tom Tromey <tromey@redhat.com>
4343
4344 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4345
4346 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4347
4348 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4349 (skip_prologue_sal): Remove local definition.
4350 (resolve_sal_pc): Remove now unnecessary code.
4351 * linespec.c (minsym_found): Call skip_prologue_sal.
4352 * symtab.c (find_function_start_pc): Remove.
4353 (find_function_start_sal): Extract prologue skipping into ...
4354 (skip_prologue_sal): ... this new function. Handle code both
4355 with and without debug info. Respect SAL's explicit_pc and
4356 explicit_line flags. Inline old find_function_start_pc.
4357 * symtab.h (find_function_start_pc): Remove.
4358 (skip_prologue_sal): Add prototype.
4359
4360 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4361
4362 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4363 for DW_TAG_imported_module children.
4364
4365 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4366
4367 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4368 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4369 * completer.c (add_struct_fields): Fix inverted logic.
4370
4371 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4372
4373 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4374
4375 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4376
4377 * tracepoint.c (current_trace_status): Don't make sure error_desc
4378 is non-NULL here.
4379 (parse_trace_status): Release a previous error_desc string, and
4380 set it to NULL by default. If stop reason is tracepoint_error,
4381 make sure error_desc is not left NULL.
4382
4383 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4384
4385 * tracepoint.c (trace_save): Remove X from tracepoint error
4386 description.
4387
4388 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4389
4390 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4391 the terror description. Don't expect an X prefix.
4392
4393 2010-03-25 Stan Shebs <stan@codesourcery.com>
4394
4395 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4396 (struct trace_status): New field error_desc.
4397 * tracepoint.c (stop_reason_names): Add terror.
4398 (current_trace_status): Ensure non-NULL error description.
4399 (trace_status_command): Add error report.
4400 (trace_status_mi): Ditto.
4401 (trace_save): Add special case for error description.
4402 (parse_trace_status): Add case for errors.
4403
4404 2010-03-25 Keith Seitz <keiths@redhat.com>
4405
4406 * dwarf2read.c (read_subroutine_type): If the compilation unit
4407 language is Java, mark any formal parameter named "this" as
4408 artificial (GCC/43521).
4409 (dwarf2_name): Add special handling for Java constructors.
4410
4411 2010-03-25 Tom Tromey <tromey@redhat.com>
4412
4413 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4414 * infrun.c (handle_inferior_event): Change initialization of
4415 stop_stack_dummy.
4416 (handle_inferior_event): Change assignment to stop_stack_dummy.
4417 (normal_stop): Update use of stop_stack_dummy.
4418 (struct inferior_status) <stop_stack_dummy>: Change type.
4419 * inferior.h (stop_stack_dummy): Update.
4420 * infcmd.c (stop_stack_dummy): Change type.
4421 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4422 function.
4423 (call_function_by_hand): Call set_std_terminate_breakpoint.
4424 Rewrite std::terminate handling.
4425 * breakpoint.h (enum bptype) <bp_std_terminate,
4426 bp_std_terminate_master>: New.
4427 (enum stop_stack_kind): New.
4428 (struct bpstat_what) <call_dummy>: Change type.
4429 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4430 Declare.
4431 * breakpoint.c (create_std_terminate_master_breakpoint): New
4432 function.
4433 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4434 Call create_std_terminate_master_breakpoint.
4435 (print_it_typical): Handle new breakpoint kinds.
4436 (bpstat_stop_status): Handle bp_std_terminate_master.
4437 (bpstat_what): Correctly set call_dummy field. Handle
4438 bp_std_terminate_master and bp_std_terminate.
4439 (print_one_breakpoint_location): Update.
4440 (allocate_bp_location): Update.
4441 (set_std_terminate_breakpoint): New function.
4442 (delete_std_terminate_breakpoint): Likewise.
4443 (create_thread_event_breakpoint): Update.
4444 (delete_command): Update.
4445 (breakpoint_re_set_one): Update.
4446 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4447
4448 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4449
4450 * symfile.c (build_section_addr_info_from_bfd): New.
4451 (build_section_addr_info_from_objfile): Base it on
4452 build_section_addr_info_from_bfd.
4453 (addrs_section_compar, addrs_section_sort): New.
4454 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4455 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4456 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4457
4458 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4459
4460 * elfread.c (find_separate_debug_file_by_buildid):
4461 Remove unused local variable.
4462
4463 2010-03-24 Tom Tromey <tromey@redhat.com>
4464
4465 PR breakpoints/9352:
4466 * NEWS: Mention changes to `commands' and `rbreak'.
4467 * symtab.c (do_end_rbreak_breakpoints): New function.
4468 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4469 end_rbreak_breakpoints.
4470 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4471 (set_breakpoint_count): Likewise. Clear last_was_multi.
4472 (multi_start, multi_end, last_was_multi): New globals.
4473 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4474 functions.
4475 (struct commands_info): New
4476 (do_map_commands_command): New function.
4477 (commands_command_1): New function.
4478 (commands_command): Use it.
4479 (commands_from_control_command): Likewise.
4480 (do_delete_breakpoint): New function.
4481 (delete_command): Use it.
4482 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4483 (do_map_disable_breakpoint): New function.
4484 (disable_command): Use it.
4485 (do_map_enable_breakpoint): New function.
4486 (enable_command): Use it.
4487 (enable_once_breakpoint): Add argument.
4488 (enable_once_command): Update.
4489 (enable_delete_breakpoint): Add argument.
4490 (enable_delete_command): Update.
4491 (break_command_really): Set last_was_multi when needed.
4492 (check_tracepoint_command): Fix formatting.
4493 (validate_commands_for_breakpoint): New function.
4494 (breakpoint_set_commands): Use it.
4495 (tracepoint_save_command): Update.
4496 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4497 Declare.
4498
4499 2010-03-24 Tom Tromey <tromey@redhat.com>
4500
4501 * breakpoint.h (struct counted_command_line): New struct.
4502 (struct breakpoint) <commands>: Change type.
4503 (struct bpstats) <commands>: Change type.
4504 <commands_left>: New field.
4505 * breakpoint.c (alloc_counted_command_line): New function.
4506 (incref_counted_command_line): Likewise.
4507 (decref_counted_command_line): Likewise.
4508 (do_cleanup_counted_command_line): Likewise.
4509 (make_cleanup_decref_counted_command_line): Likewise.
4510 (breakpoint_set_commands): Use decref_counted_command_line and
4511 alloc_counted_command_line.
4512 (commands_command): Don't error if breakpoint commands are
4513 executing.
4514 (commands_from_control_command): Likewise.
4515 (bpstat_free): Update.
4516 (bpstat_copy): Likewise.
4517 (bpstat_clear_actions): Likewise.
4518 (bpstat_do_actions_1): Likewise.
4519 (bpstat_stop_status): Likewise.
4520 (print_one_breakpoint_location): Likewise.
4521 (delete_breakpoint): Likewise.
4522 (bpstat_alloc): Initialize new field.
4523 (tracepoint_save_command): Update.
4524 * tracepoint.c (encode_actions): Update.
4525 (trace_dump_command): Update.
4526
4527 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4528
4529 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4530 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4531 (read_structure_type): For RealView, set TYPE_STUB on structures with
4532 no byte size and no children.
4533 (read_subroutine_type): Mark functions as prototyped by default.
4534 * symtab.c (producer_is_realview): New function.
4535 * symtab.h (expand_line_sal): Fix declaration formatting.
4536 (producer_is_realview): Declare.
4537
4538 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4539
4540 * arm-tdep.c (skip_prologue_function): New function.
4541 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4542 (thumb_analyze_prologue): Document return value. Recognize more
4543 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4544 Add debug output.
4545 (arm_skip_prologue): Remove call dummy check. Check the prologue
4546 for non-GNU compilers.
4547 (arm_instruction_changes_pc): New function.
4548 (arm_analyze_prologue): New function, broken out from
4549 arm_scan_prologue. Recognize more ARM instructions and skippable
4550 calls. Update comments. Handle NULL cache. Return the address
4551 of the first unrecognized instruction. Do not skip past other
4552 instructions which change control flow. Add debug output.
4553 (arm_scan_prologue): Use arm_analyze_prologue.
4554 (ARM_PC_32): Delete.
4555 (shifted_reg_val): Simplify ARM_PC_32 check.
4556
4557 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4558
4559 * tracepoint.c (tvariables_info_1): Actually compute
4560 the number of rows in the result.
4561
4562 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4563
4564 * remote.c (crc32): Constify `buf' parameter.
4565 (remote_verify_memory): New, abstracted out from...
4566 (compare_sections_command): ... this. Remove hardcoded target
4567 checks.
4568 (init_remote_ops): Install remote_verify_memory.
4569 * target.c (target_verify_memory): New.
4570 * target.h (struct target_ops) <to_verify_memory>: New field.
4571 (target_verify_memory): Declare.
4572
4573 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4574
4575 Implement -trace-save.
4576
4577 * mi-cmds.h (mi_cmds_trace_save): Declare.
4578 * mi-cmds.c (mi_cmds): Register -trace-save.
4579 * mi/mi-main.c (mi_cmd_trace_save): New.
4580 * remote.c (remote_save_trace_data): Take const parameter.
4581 * target.h (struct target_ops::to_save_trace_data): Take
4582 const parameter.
4583 * target.c (update_current_target): Adjust to the above.
4584 * tracepoint.c (trave_save): New, extracted from
4585 (trace_save_command): ...this.
4586 (tfile_trace_find): Remove message that is unnecessary now
4587 that 'tfind' reports found frame.
4588 * tracepoint.h (trace_save): Declare.
4589
4590 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4591
4592 Implement -trace-find.
4593
4594 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4595 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4596 * mi/mi-main.c (mi_cmd_trace_find): New.
4597 * target.h (struct target_ops): Document to_trace_find.
4598 * tracepoint.h (tfind_1): Declare.
4599 * tracepoint.c (finish_tfind_command): Rename to...
4600 (tfind_1): ...this.
4601 * remote.c (remote_trace_find): Return -1 if target say
4602 there's no frame. Improve error diagnostics.
4603
4604 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4605
4606 -trace-define-variable and -trace-list-variables.
4607
4608 * tracepoint.c (create_trace_state_variable): Make
4609 private copy of name, as opposed to assuming the
4610 pointer lives forever.
4611 (tvariables_info_1): New.
4612 (tvariables_info): Use the above.
4613 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4614 Declare.
4615 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4616 and -trace-list-variables.
4617 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4618 (mi_cmd_trace_list_variables): New.
4619 * mi/mi-main.c (mi_cmd_trace_define_variable)
4620 (mi_cmd_trace_list_variables): New.
4621
4622 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4623
4624 Implement -break-passcount.
4625
4626 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4627 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4628 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4629
4630 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4631
4632 -trace-start/-trace-end/-trace-status.
4633
4634 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4635 and -trace-stop.
4636 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4637 (mi_cmd_trace_stop): Declare.
4638 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4639 (mi_cmd_trace_stop): New.
4640 * tracepoint.c (start_tracing): New, extracted from...
4641 (trace_start_command): ...this.
4642 (trace_status_mi): New.
4643 * tracepoint.h (struct trace_status): Document
4644 stopping_tracepoint.
4645 (start_tracing, stop_tracing, trace_status_mi): Declare.
4646
4647 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4648
4649 Implement creating tracepoints with -break-insert.
4650
4651 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4652 to mean that tracepoint should be created.
4653
4654 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4655
4656 * breakpoint.c (check_no_tracepoint_commands): Use
4657 current spelling of 'teval'.
4658
4659 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4660
4661 Unify actions and commands
4662
4663 * defs.h (read_command_lines, read_command_lines_1): New
4664 parameters validator and closure.
4665 * tracepoint.h (struct action_line): Remove.
4666 * breakpoint.h (struct breakpoint): Remove the 'actions'
4667 field.
4668 * defs.h (enum command_control_type): New value
4669 while_stepping_control.
4670 (struct command_line): Add comments.
4671 * breakpoint.c (breakoint_is_tracepoint): New.
4672 (breakpoint_set_commands): For tracepoints,
4673 verify the commands are permissible.
4674 (check_tracepoint_commands): New.
4675 (commands_command): Require that each new line is validated using
4676 check_tracepoint_command, if we set commands for a tracepoint.
4677 (create_tracepoint_from_upload): Likewise.
4678 (print_one_breakpoint_location): Remove the code to print
4679 actions specifically.
4680 (tracepoint_save_command): Relay to print_command_lines.
4681 * cli/cli-script.c (process_next_line): New parameters validator
4682 and closure. Handle 'while-stepping'. Call validator if not null.
4683 (read_command_lines, read_command_lines1): Likewise.
4684 (recurse_read_control_structure): New parameters validator and
4685 closure. Handle while_stepping_control.
4686 (print_command_lines): Handle while-stepping.
4687 (get_command_line, define_command, document_command): Adjust.
4688 * remote.c (remote_download_tracepoint): Adjust.
4689 * tracepoint.c (make_cleanup_free_actions, read_actions)
4690 (free_actions, do_free_actions_cleanup): Remove.
4691 (trace_actions_command): Use read_command_lines.
4692 (validate_actionline): Use error in one place.
4693 (encode_actions_1): New, extracted from...
4694 (encode_actions): ...this. Also use cleanups for exception
4695 safety.
4696 (trace_dump_command): Adjust.
4697 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4698 it's tracepoint.
4699
4700 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4701
4702 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4703
4704 2010-03-22 Stan Shebs <stan@codesourcery.com>
4705
4706 * value.c (value_static_field): Be lazy about the field's value.
4707
4708 2010-03-22 Reid Kleckner <reid@kleckner.net>
4709
4710 PR gdb/11094
4711 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4712 bp_jit_event.
4713 (disable_breakpoints_in_shlibs): Likewise.
4714
4715 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4716
4717 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4718 GCC 4.1 debug info generation (GCC PR c++/28460).
4719 (determine_prefix): Likewise.
4720
4721 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4722
4723 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4724 get_current_arch.
4725 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4726
4727 2010-03-19 Stan Shebs <stan@codesourcery.com>
4728
4729 * ax-gdb.c (gen_fetch): Handle bool.
4730 (gen_usual_unary): Ditto.
4731 (gen_cast): Ditto.
4732 (gen_equal): New function.
4733 (gen_less): New function.
4734 (gen_expr_binop_rest): Call them, also return integer type from
4735 logical operations.
4736 (gen_expr): Ditto.
4737
4738 2010-03-19 Tom Tromey <tromey@redhat.com>
4739
4740 * jv-lang.c (jv_dynamics_objfile_data_key)
4741 (jv_type_objfile_data_key): New globals.
4742 (class_symtab): Move earlier.
4743 (jv_per_objfile_free): New function.
4744 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4745 parameter.
4746 Remove ancient #if 1.
4747 (add_class_symbol): Remove redundant declaration.
4748 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4749 (java_link_class_type): Mark as static. Update.
4750 (jv_clear_object_type): New function.
4751 (set_java_object_type): Likewise.
4752 (get_java_object_type): Use set_java_object_type.
4753 (is_object_type): Likewise.
4754 (_initialize_java_language): Register new objfile keys.
4755 (get_java_class_symtab): Add 'gdbarch' parameter.
4756 (add_class_symtab_symbol): Update.
4757 (type_from_class): Update.
4758
4759 2010-03-19 Stan Shebs <stan@codesourcery.com>
4760
4761 * ax-general.c (ax_const_l): Fix a sizing bug.
4762
4763 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4764
4765 GDB 7.1 released.
4766
4767 2010-03-18 Stan Shebs <stan@codesourcery.com>
4768 Pedro Alves <pedro@codesourcery.com>
4769
4770 * target.h (struct target_ops): New method
4771 to_set_circular_trace_buffer.
4772 (target_set_circular_trace_buffer): New macro.
4773 * target.c (update_current_target): Add
4774 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4775 default behavior.
4776 * remote.c (remote_set_circular_trace_buffer): New function.
4777 (init_remote_ops): Add it to vector.
4778 * tracepoint.h (struct trace_status): New field traceframes_created,
4779 change buffer_size and buffer_free to int.
4780 * tracepoint.c (circular_trace_buffer): New global.
4781 (start_tracing): Send values of disconnected tracing and circular
4782 trace buffer settings.
4783 (set_circular_trace_buffer): New function.
4784 (parse_trace_state): Handle total space and frames created.
4785 (trace_status_command): Display total space and total frames
4786 created.
4787 (trace_save): Write out new status values.
4788 (parse_trace_status): Set traceframe_count, traceframes_created,
4789 buffer_free and buffer_size to -1 by default.
4790 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4791 * NEWS: Mention the circular trace buffer option.
4792
4793 2010-03-18 Tom Tromey <tromey@redhat.com>
4794
4795 * infcmd.c (finish_command_continuation): Wrap print_return_value
4796 in TRY_CATCH.
4797
4798 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4799
4800 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4801 DIE has a name before creating the associated partial symbol.
4802 (read_func_scope): Emit a complaint if the subprogram does not
4803 have a name or when we can't extract the subprogram PC bounds.
4804
4805 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4806
4807 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4808 instead of selected frame architecture.
4809
4810 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4811
4812 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4813 a valid selected thread, and that it is not running.
4814 (advance_command): Ditto.
4815 (finish_command): Ditto.
4816
4817 2010-03-17 Stan Shebs <stan@codesourcery.com>
4818
4819 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4820
4821 * infcall.c: Include tracepoint.h.
4822 (call_function_by_hand): Disallow calls in tfind mode.
4823 * infcmd.c: Include tracepoint.h.
4824 (ensure_not_tfind_mode): New function.
4825 (continue_1): Call it.
4826 (step_1) Ditto.
4827 (jump_command): Ditto.
4828 (signal_command): Ditto.
4829 (advance_command): Ditto.
4830 (until_command): Ditto.
4831 (finish_command): Ditto.
4832 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4833
4834 * ax-gdb.h (struct axs_value): New field optimized_out.
4835 (gen_trace_for_var): Add gdbarch argument.
4836 * ax-gdb.c (gen_trace_static_fields): New function.
4837 (gen_traced_pop): Call it, add gdbarch argument.
4838 (gen_trace_for_expr): Update call to it.
4839 (gen_trace_for_var): Ditto, and report optimized-out variables.
4840 (gen_struct_ref_recursive): Check for optimized-out value.
4841 (gen_struct_elt_for_reference): Ditto.
4842 (gen_static_field): Pass gdbarch instead of expression, assume
4843 optimization if field not found.
4844 (gen_var_ref): Set the optimized_out flag.
4845 (gen_expr): Error on optimized-out variable.
4846 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4847 expressions, skip optimized-out variables with computed locations.
4848 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4849 erroring out if location expression missing.
4850 (loclist_tracepoint_var_ref): Don't error out here.
4851
4852 2010-03-17 Tom Tromey <tromey@redhat.com>
4853
4854 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4855 DWARF data is available.
4856
4857 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4858
4859 * symfile.c (generic_load): Reset breakpoints after loading.
4860
4861 2010-03-17 Tom Tromey <tromey@redhat.com>
4862
4863 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4864
4865 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4866
4867 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4868 create_breakpoint call, adjust the parameters.
4869
4870 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 Chandru <chandru@in.ibm.com>
4872
4873 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4874 * valarith.c (value_subscripted_rvalue): Suppress error if
4875 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4876
4877 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4878
4879 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4880
4881 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4882
4883 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4884 before doing the associated thread switch.
4885
4886 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4887
4888 * MAINTAINERS: Update my email address.
4889
4890 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4891
4892 Simplify MI breakpoint setting.
4893
4894 * breakpoint.c (break_command_really): Make nonstatic and
4895 rename to...
4896 (create_breakpoint): ...this. Rename prior function by this name
4897 to...
4898 (create_breakpoint_sal): ...this.
4899 (create_breakpoints): Rename to...
4900 (create_breakpoints_sal): ...this.
4901 (set_breakpoint): Remove.
4902 * breakpoint.h: Adjust to above changes.
4903 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4904
4905 2010-03-15 Stan Shebs <stan@codesourcery.com>
4906
4907 * ax-gdb.c: Include cp-support.h.
4908 (find_field): Remove.
4909 (gen_primitive_field): New function.
4910 (gen_struct_ref_recursive): New function.
4911 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4912 of find_field.
4913 (gen_static_field): New function.
4914 (gen_struct_elt_for_reference): New.
4915 (gen_namespace_elt): New.
4916 (gen_maybe_namespace_elt): New.
4917 (gen_aggregate_elt_ref): New.
4918 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4919
4920 2010-03-15 Tom Tromey <tromey@redhat.com>
4921
4922 * dwarf2read.c (die_needs_namespace): Also return 0 for
4923 DW_TAG_subprogram.
4924
4925 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4926
4927 PR c++/7936:
4928 * cp-support.h: Added char *declaration element to using_direct
4929 data struct.
4930 (cp_add_using): Added char *declaration argument.
4931 (cp_add_using_directive): Ditto.
4932 (cp_lookup_symbol_imports): made extern.
4933 * cp-namespace.c: Updated with the above changes.
4934 * dwarf2read.c (read_import_statement): Ditto.
4935 (read_namespace): Ditto.
4936 (read_import_statement): Support import declarations.
4937 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4938 declarations.
4939 Added support for 'declaration_only' search.
4940 (cp_lookup_symbol_namespace): Attempt to search for the name as
4941 is before consideration of imports.
4942 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4943 search at every block level search.
4944 Now takes language argument.
4945 (lookup_symbol_aux): Updated.
4946
4947 2010-03-15 Tom Tromey <tromey@redhat.com>
4948
4949 * c-exp.y (name_not_typename): Add 'operator' clause.
4950
4951 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4952
4953 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4954 * configure: Regenerate.
4955
4956 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4957
4958 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4959 and ".sdynbss". Update the comment.
4960
4961 2010-03-15 Jie Zhang <jie@codesourcery.com>
4962
4963 * MAINTAINERS: Update my email address.
4964
4965 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4966
4967 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4968
4969 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4970
4971 * charset.c [USE_WIN32API]: Include <windows.h>.
4972 (_initialize_charset): Correct type of w32_host_default_charset.
4973
4974 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4975
4976 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4977
4978 2010-03-12 Tom Tromey <tromey@redhat.com>
4979
4980 PR c++/9708:
4981 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4982 in a lexical block does not need a namespace.
4983 (new_symbol) <DW_TAG_variable>: Put extern variables on
4984 list_in_scope in all cases.
4985
4986 2010-03-12 Stan Shebs <stan@codesourcery.com>
4987
4988 * ax-gdb.c (gen_expr): Add shift expressions.
4989 (gen_expr_binop_rest): Ditto.
4990
4991 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4992
4993 * buildsym.c (finish_block): Reset using_directives pointer
4994 after block initialization.
4995
4996 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4997
4998 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4999 * i386-tdep.c (i386_word_names): Likewise.
5000
5001 2010-03-12 Pedro Alves <pedro@codesourcery.com>
5002
5003 * target.c (memory_xfer_partial): Don't use the stack cache if
5004 inspecting trace frames.
5005 * tracepoint.c (finish_tfind_command): Invalidate the target
5006 dcache.
5007
5008 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5009
5010 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
5011 for the PIC displacement, print also the displacement value.
5012 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
5013
5014 2010-03-10 Kevin Buettner <kevinb@redhat.com>
5015
5016 * remote-mips.c (close_ports, mips_initialize_cleanups)
5017 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
5018 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
5019 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
5020 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
5021 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
5022 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
5023 comments describing each of these functions.
5024 (mips_enter_debug, mips_exit_debug, common_open)
5025 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
5026 blank line after the comment describing the function.
5027
5028 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5029
5030 * solib-svr4.c (svr4_exec_displacement): Return now success, new
5031 parameter displacementp. Update comment.
5032 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
5033 element exists. Return if svr4_exec_displacement was not successful.
5034 Update comment.
5035
5036 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5037 Daniel Jacobowitz <dan@codesourcery.com>
5038
5039 * solib-svr4.c (read_program_header): Support type == -1 to read
5040 all program headers.
5041 (read_program_headers_from_bfd): New function.
5042 (svr4_static_exec_displacement): Remove and move the comment ...
5043 (svr4_exec_displacement): ... here. Remove variable found. New
5044 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
5045 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
5046 targets using read_program_headers_from_bfd. Remove the call of
5047 svr4_static_exec_displacement.
5048
5049 2010-03-10 Tom Tromey <tromey@redhat.com>
5050
5051 * dwarf2read.c (struct pubnames_header): Remove.
5052 (_PUBNAMES_HEADER): Remove.
5053 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
5054 (struct aranges_header): Remove.
5055 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
5056 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
5057 (PUBNAMES_SECTION): Remove.
5058 (ARANGES_SECTION): Remove.
5059 (dwarf2_locate_sections): Don't handle pubnames or aranges.
5060 (dwarf2_build_psymtabs): Remove dead code.
5061 (dwarf2_build_psymtabs_easy): Remove.
5062
5063 2010-03-10 Tom Tromey <tromey@redhat.com>
5064
5065 * elfread.c (elf_symfile_read): Don't call
5066 dwarf2_build_frame_info.
5067 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
5068 (struct dwarf2_per_objfile) <objfile>: New field.
5069 (dwarf2_has_info): Now idempotent. Set objfile field.
5070 (dwarf2_read_section): Check and set readin field. Call
5071 posix_madvise.
5072 (dwarf2_build_psymtabs): Don't read all sections.
5073 (read_type_comp_unit_head): Read types section.
5074 (create_debug_types_hash_table): Likewise.
5075 (init_cu_die_reader): Add asserts.
5076 (process_type_comp_unit): Add assert.
5077 (dwarf2_build_psymtabs_hard): Read info section.
5078 (load_partial_comp_unit): Add assert.
5079 (create_all_comp_units): Read info section.
5080 (load_full_comp_unit): Likewise.
5081 (dwarf2_ranges_read): Read ranges section.
5082 (dwarf2_record_block_ranges): Add assert.
5083 (dwarf2_read_abbrevs): Read abbrev section.
5084 (read_indirect_string): Read str section.
5085 (dwarf_decode_line_header): Read line section.
5086 (read_signatured_type_at_offset): Read types section.
5087 (dwarf_decode_macros): Read macinfo section.
5088 (dwarf2_symbol_mark_computed): Read loc section.
5089 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
5090 dwarf2_build_frame_info.
5091 (dwarf2_build_frame_info): Unconditionally set
5092 dwarf2_frame_objfile_data on the objfile.
5093 * configure.ac: Check for posix_madvise.
5094 * config.in, configure: Rebuild.
5095
5096 2010-03-10 Tom Tromey <tromey@redhat.com>
5097
5098 * xcoffread.c (xcoff_start_psymtab): Update.
5099 (xcoff_end_psymtab): Update.
5100 * psymtab.c (allocate_psymtab): Remove dead code.
5101 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
5102 void*.
5103 * mdebugread.c (parse_partial_symbols): Update.
5104 (new_psymtab): Likewise.
5105 * dwarf2read.c (process_psymtab_comp_unit): Update.
5106 (psymtab_to_symtab_1): Update.
5107 * dbxread.c (start_psymtab): Update.
5108 (end_psymtab): Likewise.
5109
5110 2010-03-10 Tom Tromey <tromey@redhat.com>
5111
5112 * xcoffread.c: Include psymtab.h.
5113 (xcoff_sym_fns): Update.
5114 * symtab.h (struct partial_symbol): Remove.
5115 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5116 (struct partial_symtab): Remove.
5117 (PSYMTAB_TO_SYMTAB): Remove.
5118 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5119 (find_pc_sect_psymtab): Remove.
5120 (find_pc_sect_symtab_via_partial): Declare.
5121 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5122 (find_main_psymtab): Remove.
5123 (find_main_filename): Declare.
5124 (fixup_psymbol_section): Remove.
5125 (fixup_section): Declare.
5126 * symtab.c: Include psymtab.h.
5127 (lookup_symtab): Use lookup_symtab method.
5128 (lookup_partial_symtab): Remove.
5129 (find_pc_sect_psymtab_closer): Remove.
5130 (find_pc_sect_psymtab): Remove.
5131 (find_pc_sect_symtab_via_partial): New function.
5132 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5133 (fixup_section): No longer static.
5134 (fixup_psymbol_section): Remove.
5135 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5136 (lookup_global_symbol_from_objfile): Likewise.
5137 (lookup_symbol_aux_psymtabs): Remove.
5138 (lookup_symbol_aux_quick): New function.
5139 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5140 (lookup_partial_symbol): Remove.
5141 (basic_lookup_transparent_type_quick): New function.
5142 (basic_lookup_transparent_type): Use it.
5143 (find_main_psymtab): Remove.
5144 (find_main_filename): New function.
5145 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5146 (find_line_symtab): Use expand_symtabs_with_filename method.
5147 (output_partial_symbol_filename): New function.
5148 (sources_info): Use map_partial_symbol_filenames.
5149 (struct search_symbols_data): New type.
5150 (search_symbols_file_matches): New function.
5151 (search_symbols_name_matches): Likewise.
5152 (search_symbols): Use expand_symtabs_matching method.
5153 (struct add_name_data): Rename from add_macro_name_data.
5154 (add_macro_name): Update.
5155 (add_partial_symbol_name): New function.
5156 (default_make_symbol_completion_list): Use
5157 map_partial_symbol_names.
5158 (struct add_partial_symbol_name): New type.
5159 (maybe_add_partial_symtab_filename): New function.
5160 (make_source_files_completion_list): Use
5161 map_partial_symbol_filenames.
5162 (expand_line_sal): Use expand_symtabs_with_filename method.
5163 * symmisc.c: Include psymtab.h.
5164 (print_objfile_statistics): Use print_stats method.
5165 (dump_objfile): Use dump method.
5166 (dump_psymtab, maintenance_print_psymbols)
5167 (maintenance_info_psymtabs, maintenance_check_symtabs)
5168 (extend_psymbol_list): Remove.
5169 * symfile.h (struct quick_symbol_functions): New struct.
5170 (struct sym_fns) <qf>: New field.
5171 (sort_pst_symbols): Remove.
5172 (increment_reading_symtab): Declare.
5173 * symfile.c: Include psymtab.h.
5174 (compare_psymbols, sort_pst_symbols): Remove.
5175 (psymtab_to_symtab): Remove.
5176 (increment_reading_symtab): New function.
5177 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5178 method.
5179 (set_initial_language): Use find_main_filename.
5180 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5181 (free_named_symtabs): Remove unused code.
5182 (start_psymtab_common, add_psymbol_to_bcache)
5183 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5184 Remove.
5185 * stack.c: Include psymtab.h, symfile.h.
5186 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5187 * source.h (psymtab_to_fullname): Don't declare.
5188 * source.c: Include psymtab.h.
5189 (select_source_symtab): Use find_last_source_symtab method.
5190 (forget_cached_source_info): Use forget_cached_source_info
5191 method.
5192 (find_and_open_source): No longer static.
5193 (psymtab_to_fullname): Remove.
5194 * somread.c: Include psymtab.h.
5195 (som_sym_fns): Update.
5196 * psympriv.h: New file.
5197 * psymtab.h: New file.
5198 * psymtab.c: New file.
5199 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5200 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5201 * objfiles.c: Include psymtab.h.
5202 (objfile_relocate1): Use relocate method.
5203 (objfile_has_partial_symbols): Use has_symbols method.
5204 * mipsread.c: Include psymtab.h.
5205 (ecoff_sym_fns): Update.
5206 * mi/mi-cmd-file.c: Include psymtab.h.
5207 (print_partial_file_name): New function.
5208 (mi_cmd_file_list_exec_source_files): Use
5209 map_partial_symbol_filenames.
5210 * mdebugread.c: Include psympriv.h.
5211 * machoread.c: Include psympriv.h.
5212 (macho_sym_fns): Update.
5213 * m2-exp.y (yylex): Use lookup_symtab.
5214 * elfread.c: Include psympriv.h.
5215 (elf_sym_fns): Update.
5216 * dwarf2read.c: Include psympriv.h.
5217 * dbxread.c: Include psympriv.h.
5218 (aout_sym_fns): Update.
5219 * cp-support.c: Include psymtab.h.
5220 (read_in_psymtabs): Remove.
5221 (make_symbol_overload_list_qualified): Use
5222 expand_symtabs_for_function method.
5223 * coffread.c: Include psympriv.h.
5224 (coff_sym_fns): Update.
5225 * blockframe.c: Include psymtab.h.
5226 (find_pc_partial_function): Use find_pc_sect_symtab method.
5227 * ada-lang.h (ada_update_initial_language): Update.
5228 * ada-lang.c: Include psymtab.h.
5229 (ada_update_initial_language): Remove 'main_pst' argument.
5230 (ada_lookup_partial_symbol): Remove.
5231 (struct ada_psym_data): New type.
5232 (ada_add_psyms): New function.
5233 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5234 (struct add_partial_datum): New type.
5235 (ada_add_partial_symbol_completions): New function.
5236 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5237 (ada_exception_support_info_sniffer): Update.
5238 * Makefile.in (SFILES): Add psymtab.c.
5239 (COMMON_OBS): Add psymtab.o.
5240 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5241
5242 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5243
5244 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5245
5246 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5247
5248 PR C++/11236:
5249 * cp-namespace.c (cp_add_using): Deleted.
5250 (cp_add_using_directive): Use obstack allocations.
5251 Merged the function cp_add_using into this one.
5252 Added 'struct obstack *' argument.
5253 (cp_scan_for_anonymous_namespaces): Updated.
5254 * cp-support.h: Updated.
5255 * dwarf2read.c (read_import_statement): Updated.
5256 (read_namespace): Updated.
5257
5258 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5259
5260 * windows-nat.c (cygwin_conv_path): Remove old macro.
5261
5262 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5263
5264 * breakpoint.c (condition_command): Handle watchpoint conditions.
5265 (is_hardware_watchpoint): Add comment.
5266 (is_watchpoint): New.
5267 (update_watchpoint): Don't reparse the watchpoint's condition
5268 unless necessary.
5269 (WP_IGNORE): New.
5270 (watchpoint_check): Use it.
5271 (bpstat_check_watchpoint): Handle it.
5272 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5273 conditions in a frame where it makes sense.
5274 (watch_command_1): Store the innermost block of the condition
5275 expression.
5276 (delete_breakpoint): Delete the watchpoint condition expression.
5277 * breakpoint.h (struct bp_location) <cond>: Update comment.
5278 (struct breakpoint): New field `cond_exp_valid_block'.
5279
5280 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5281
5282 Adjust handling of Ada DIEs after dwarf2_physname patch.
5283 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5284
5285 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5286 Pierre Muller <muller@ics.u-strasbg.fr>
5287
5288 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5289 from/to posix/win32.
5290 (windows_make_so): Use non-Cygwin 1.7 specific function.
5291 (windows_create_inferior): Make sure that cygallargs points to
5292 original args in non Cygwin 1.7. case.
5293
5294 2010-03-09 Michael Snyder <msnyder@vmware.com>
5295
5296 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5297 after target_read_memory to get host byte order.
5298 (i386_process_record): Ditto.
5299
5300 2010-03-09 Keith Seitz <keiths@redhat.com>
5301
5302 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5303 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5304 print out const or volatile qualifiers, too.
5305 (c_type_print_args): Add parameters show_artificial and language.
5306 Skip artificial parameters when requested.
5307 Use the appropriate language printer.
5308 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5309 parameters and pass language_c.
5310 * dwarf2read.c (die_list): New file global.
5311 (struct partial_die_info): Update comments for name field.
5312 (pdi_needs_namespace): Renamed to ...
5313 (die_needs_namespace): ... this. Rewrite.
5314 (dwarf2_linkage_name): Remove.
5315 (add_partial_symbol): Do not predicate the call to
5316 partial_die_full_name based on pdi_needs_namespace.
5317 Remove call to cp_check_possible_namespace_symbols and associated
5318 outdated comments.
5319 (guess_structure_name): Do not inspect child subprogram DIEs.
5320 (dwarf2_fullname): Update comments.
5321 Use die_needs_namespace to assist in computing the name.
5322 (read_func_scope): Use dwarf2_name to get the DIE's name.
5323 Use dwarf2_physname to get the "linkage name" of the DIE.
5324 (dwarf2_add_member_field): Use dwarf2_physname instead of
5325 dwarf2_linkage_name.
5326 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5327 (determine_class): Remove.
5328 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5329 except Ada.
5330 (new_symbol): Unconditionally call dwarf2_name.
5331 Compute the "linkage name" using dwarf2_physname.
5332 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5333 When determining to scan for anonymous C++ namespaces, ignore
5334 the linkage name.
5335 (dwarf2_physname): New function.
5336 (dwarf2_full_name): Move content to new function and call
5337 that.
5338 (dwarf2_compute_name): "New" function.
5339 (_initialize_dwarf2_read): Initialize die_list.
5340 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5341 physname.
5342 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5343 without a demangled name.
5344 Print out type information for non-virtual methods.
5345 * linespec.c (decode_line_1): Force ANY string using "::" (or
5346 "." for java) to use decode_compound, and clean up any stray quoting.
5347 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5348 (decode_compound): Stop consuming at an open parenthesis.
5349 Keep template parameters.
5350 Keep any overload information.
5351 Keep keywords like "const".
5352 Remove paren_pointer.
5353 Move is_quoted check from set_flags to here.
5354 Remove #if 0 code from 2000. Ten years is long enough.
5355 (find_method): Before comparing symbol names, canonicalize the string
5356 from the user.
5357 If a specific overload is requested, find it. Otherwise throw an error.
5358 (find_method_overload_end): New function.
5359 (set_flags): Remove.
5360 (decode_compound): Assume that parentheses are matched.
5361 It's a lot easier.
5362 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5363 to cplus_demangle.
5364 * linespec.c (decode_line_1): Keep important keywords like
5365 "const" and "volatile".
5366 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5367 * typeprint.h (c_type_print_args): Add declaration.
5368 * ui-file.c (do_ui_file_obsavestring): New function.
5369 (ui_file_obsavestring): New function.
5370 * ui-file.h (ui_file_obsavestring): Add declaration.
5371 * valops.c (find_overload_match): Resolve the object to
5372 a non-pointer type.
5373 If the object is a data member, search the object for the member
5374 and return with staticp set.
5375 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5376 Do not attempt to extract a function name from non-function types.
5377 If the extracted function name and the original name are the same,
5378 we don't have a C++ method.
5379
5380 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5381 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5382
5383 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5384 and arguments from symbol lookups.
5385 * ax-gdb.c (gen_expr): Likewise.
5386 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5387 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5388 lookup_possible_namespace_symbol): Likewise.
5389 * cp-support.c (read_in_psymtabs): Likewise.
5390 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5391 * language.h (la_lookup_symbol_nonlocal): Likewise.
5392 * scm-valprint.c (scm_inferior_print): Likewise.
5393 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5394 * solib-svr.c (elf_lookup_lib): Likewise.
5395 * solib.c (show_auto_solib_add): Likewise.
5396 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5397 * symmisc.c (maintenance_check_symtabs): Likewise.
5398 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5399 lookup_symbol_aux_local, lookup_symbol_aux_block,
5400 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5401 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5402 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5403 basic_lookup_transparent_type, find_main_psymtab,
5404 lookup_block_symbol): Likewise.
5405 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5406 lookup_symbol_global, lookup_symbol_aux_block,
5407 lookup_symbol_partial_symbol, lookup_block_symbol,
5408 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5409
5410 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5411
5412 * python/python-internal.h: Include symtab.h.
5413
5414 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5415 Pierre Muller <muller@ics.u-strasbg.fr>
5416
5417 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5418 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5419 indentation.
5420
5421 2010-03-08 Tom Tromey <tromey@redhat.com>
5422
5423 * breakpoint.c (breakpoint_1): Add "QUIT".
5424
5425 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5426 Pedro Alves <pedro@codesourcery.com>
5427
5428 * solib.c (solib_find): Replace extension if
5429 solib_symbols_extension is set in the target gdbarch.
5430 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5431 solib_symbols_extension to "sym".
5432 * gdbarch.sh (solib_symbols_extension): New variable.
5433 (pstring): New function.
5434 * gdbarch.h, gdbarch.c: Regenerate.
5435
5436 2010-03-08 Tom Tromey <tromey@redhat.com>
5437
5438 PR cli/9591:
5439 * NEWS: Update.
5440 * utils.c: Include main.h.
5441 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5442 (defaulted_query): Use default answer if `batch_flag'.
5443 * main.h (batch_flag): Declare.
5444 * main.c (batch_flag): New global.
5445 (captured_main): Remove 'batch'. Update.
5446
5447 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5448
5449 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5450 and Kevin Buettner:
5451
5452 * remote-mips.c (rockhopper_ops): New target_ops struct.
5453 (MON_ROCKHOPPER): New mips_monitor_type.
5454 (read_hex_value): New function.
5455 (mips_request): Send 8-byte values with a 'T' packet. Read the
5456 packet argument as a string and use read_hex_value to parse it.
5457 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5458 (rockhopper_open): New function.
5459 (mips_wait): Read the PC, FP and SP fields as strings. Use
5460 read_hex_value to parse them and mips_set_register to commit them.
5461 (mips_set_register): New function.
5462 (mips_fetch_registers): Do not cast register value to "unsigned"
5463 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5464 (mips_store_registers): Use a 'T' packet to set registers when
5465 using MON_ROCKHOPPER.
5466 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5467 and expect the total to be printed before the entry address.
5468 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5469
5470 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5471
5472 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5473 Change return value to int. Store value fetched in location
5474 addressed by `val'. Use function's return value as success
5475 or failure indicator. Adjust all callers.
5476
5477 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5478
5479 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5480
5481 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5482 Hui Zhu <teawater@gmail.com>
5483
5484 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5485 tmp_to_stopped_data_address.
5486 (record_open): Reset tmp_to_stopped_by_watchpoint and
5487 tmp_to_stopped_data_address.
5488 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5489 to_stopped_data_address.
5490
5491 2010-03-08 Hui Zhu <teawater@gmail.com>
5492
5493 * i386-tdep.c (i386_process_record): Initialize regnum.
5494
5495 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5496
5497 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5498 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5499
5500 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5501
5502 Memory error when reading wrong core file.
5503 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5504 errors while reading the inferior memory, and return zero if
5505 an exception was raised.
5506
5507 2010-03-07 Michael Snyder <msnyder@vmware.com>
5508
5509 * record.c (record_restore): Rename tmpu8 to rectype.
5510
5511 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5512 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5513
5514 (i386_record_push): Rename local tmpulongest to addr.
5515
5516 (i386_process_record): Rename local tmpulongest to addr.
5517
5518 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5519 addr64.
5520
5521 Rename local variable tmpu8 to opcode8 and regnum.
5522
5523 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5524
5525 * remote.c (remote_get_ada_task_ptid): New function.
5526 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5527
5528 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5529
5530 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5531 block. Define helper macros to reduce ifdefs in code.
5532 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5533 size. Call unadorned GetModuleFileNameEx rather than
5534 GetModuleFileNameEx*.
5535 (windows_make_so): Use __PMAX to denote maximum buffer size and
5536 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5537 appropriate.
5538 (get_image_name): Use __PMAX to denote maximum buffer size.
5539 (handle_load_dll): Likewise.
5540 (windows_pid_to_exec_file): Likewise.
5541 (windows_create_inferior): Add many accommodations for older Cygwin and
5542 non-Cygwin.
5543 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5544 __USEWIDE conditional.
5545 (bad_GetModuleFileNameExA): Likewise.
5546 (_initialize_loadable): Just use real function names without the dyn_
5547 part since they are defined earlier.
5548
5549 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5550 Tom Tromey <tromey@redhat.com>
5551
5552 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5553 (parse_escape): Likewise.
5554 * python/py-utils.c (unicode_to_target_string): Update.
5555 (unicode_to_target_python_string): Update.
5556 (target_string_to_unicode): Update.
5557 * printcmd.c (printf_command): Update.
5558 * p-exp.y (yylex): Update.
5559 * objc-exp.y (yylex): Update.
5560 * mi/mi-parse.c: Include charset.h.
5561 (mi_parse_escape): New function.
5562 (mi_parse_argv): Use it.
5563 * jv-exp.y (yylex): Update.
5564 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5565 function.
5566 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5567 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5568 * gdbarch.c: Rebuild.
5569 * gdbarch.h: Rebuild.
5570 * defs.h (parse_escape): Update.
5571 * cli/cli-setshow.c: Include arch-utils.h.
5572 (do_setshow_command): Update.
5573 * cli/cli-cmds.c (echo_command): Update.
5574 * charset.h (target_charset, target_wide_charset): Update.
5575 * charset.c: Include arch-utils.h.
5576 (target_charset_name): Default to "auto".
5577 (target_wide_charset_name): Likewise.
5578 (show_target_charset_name): Handle "auto".
5579 (show_target_wide_charset_name): Likewise.
5580 (be_le_arch): New global.
5581 (set_be_le_names): Add 'gdbarch' argument.
5582 (validate): Likewise. Don't call set_be_le_names.
5583 (set_charset_sfunc, set_host_charset_sfunc)
5584 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5585 Update.
5586 (target_charset): Add 'gdbarch' argument.
5587 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5588 (auto_target_charset_name): New global.
5589 (default_auto_charset, default_auto_wide_charset): New functions.
5590 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5591 for target charsets. Copy result of nl_langinfo. Use GetACP if
5592 USE_WIN32API.
5593 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5594 remove 'byte_order' argument. Update.
5595 (classify_type): Likewise.
5596 (c_emit_char): Update.
5597 (c_printchar): Update.
5598 (c_printstr): Update.
5599 (c_get_string): Update.
5600 (evaluate_subexp_c): Update.
5601 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5602 Declare.
5603 * python/python.c (gdbpy_target_charset): New function.
5604 (gdbpy_target_wide_charset): Likewise.
5605 (GdbMethods): Update.
5606 * NEWS: Update.
5607
5608 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5609
5610 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5611 off high address bits.
5612
5613 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5614
5615 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5616 address as UnsignedLongLong, not LongLong.
5617
5618 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5619 Pedro Alves <pedro@codesourcery.com>
5620
5621 * remote-mips.c (gdbthread.h): Include.
5622 (remote_mips_ptid): Declare.
5623 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5624 (common_open): Set inferior_ptid, add it as an inferior, and
5625 as a thread too. Delete FIXME comment regarding start_remote().
5626 (mips_close): Invoke generic_mourn_inferior().
5627 (mips_kill): Make sure that target_mourn_inferior is invoked.
5628 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5629 it's now invoked from mips_close().
5630 (mips_load): Don't null out inferior_ptid. Don't call
5631 clear_symtab_users().
5632 (mips_thread_alive, mips_pid_to_str): New functions.
5633 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5634 to_thread_alive and to_pid_to_str operations.
5635
5636 2010-03-04 Tom Tromey <tromey@redhat.com>
5637
5638 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5639 in DWARF 3 and later.
5640 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5641
5642 2010-03-04 Keith Seitz <keiths@redhat.com>
5643
5644 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5645 If the filename portion of the linespec was quoted, recheck the
5646 remainder for additional quoting.
5647 (locate_first_half): Skip over completer chars, too.
5648
5649 2010-03-04 Tom Tromey <tromey@redhat.com>
5650
5651 * printcmd.c (printf_command): Pass dummy argument to
5652 printf_filtered.
5653
5654 2010-03-04 Doug Evans <dje@google.com>
5655
5656 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5657 unwound_fp.
5658
5659 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5660
5661 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5662
5663 * breakpoint.c (update_watchpoint): Create a sentinel location if
5664 the software watchpoint isn't watching any memory.
5665 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5666
5667 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5668
5669 * utils.c (fputs_maybe_filtered): Check if there's already a top
5670 level interpreter before dereferencing it. If there isn't one,
5671 don't paginate either.
5672
5673 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5674
5675 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5676 the state right when single stepping.
5677 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5678 Get the next PC along with the instruction state.
5679 (thumb_get_next_pc): Remove.
5680 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5681
5682 2010-03-04 Hui Zhu <teawater@gmail.com>
5683
5684 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5685
5686 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5687
5688 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5689 top level interpreter is MI.
5690
5691 2010-03-03 Stan Shebs <stan@codesourcery.com>
5692
5693 * remote.c (remote_download_tracepoint): Iterate over locations.
5694 * tracepoint.c (validate_actionline): Ditto.
5695 (encode_actions): Add location argument.
5696 (trace_dump_command): Check all locations to see if stepping
5697 frame.
5698
5699 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5700 Eli Zaretskii <eliz@gnu.org>
5701
5702 * NEWS: Add X86 general purpose registers section.
5703
5704 2010-03-03 Tom Tromey <tromey@redhat.com>
5705
5706 PR mi/11098:
5707 * varobj.c (install_new_value): Handle case where new print_value
5708 is NULL.
5709
5710 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5711
5712 PR gdb/11345:
5713 * printcmd.c (printf_command): Print end of format string using
5714 printf_filtered.
5715
5716 2010-03-02 Tom Tromey <tromey@redhat.com>
5717
5718 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5719 * defs.h (read_command_lines_1): Add missing 'void'.
5720 * cli/cli-script.c (recurse_read_control_structure): Add missing
5721 'void'.
5722 (read_next_line): Likewise.
5723 (read_command_lines_1): Likewise.
5724
5725 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5726
5727 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5728 store backchain as part of prologue.
5729
5730 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5731
5732 * progspace.c (update_address_spaces): Update inferior address spaces
5733 also.
5734
5735 2010-03-02 Doug Evans <dje@google.com>
5736
5737 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5738 lowpc,highpc args to addrmap_set_empty.
5739
5740 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5741
5742 * amd64-tdep.c (amd64_byte_names): New.
5743 (amd64_word_names): Likewise.
5744 (amd64_dword_names): Likewise.
5745 (amd64_pseudo_register_name): Likewise.
5746 (amd64_pseudo_register_read): Likewise.
5747 (amd64_pseudo_register_write): Likewise.
5748 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5749 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5750 set_gdbarch_pseudo_register_write and
5751 set_tdesc_pseudo_register_name. Don't call
5752 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5753
5754 * i386-tdep.c (i386_num_mmx_regs): Removed.
5755 (i386_num_pseudo_regs): Likewise.
5756 (i386_byte_names): New.
5757 (i386_word_names): Likewise.
5758 (i386_byte_regnum_p): Likewise.
5759 (i386_word_regnum_p): Likewise.
5760 (i386_mmx_regnum_p): Updated.
5761 (i386_pseudo_register_name): Make it global. Handle byte and
5762 word pseudo-registers.
5763 (i386_pseudo_register_read): Likewise.
5764 (i386_pseudo_register_write): Likewise.
5765 (i386_pseudo_register_type): Handle byte, word and dword
5766 pseudo-registers
5767 (i386_register_reggroup_p): Don't include pseudo
5768 registers, except for MXX, in any register groups. Don't
5769 include pseudo byte, word, dword registers in general_reggroup.
5770 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5771 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5772 pseudo-registers after word pseudo-registers. Call
5773 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5774
5775 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5776 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5777 eax_regnum.
5778 (i386_byte_regnum_p): New.
5779 (i386_word_regnum_p): Likewise.
5780 (i386_dword_regnum_p): Likewise.
5781 (i386_pseudo_register_name): Likewise.
5782 (i386_pseudo_register_read): Likewise.
5783 (i386_pseudo_register_write): Likewise.
5784
5785 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5786
5787 * target-descriptions.c (tdesc_type): Remove
5788 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5789 (tdesc_predefined_types): Likewise.
5790 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5791 if flag name is empty.
5792 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5793
5794 * features/i386/32bit-core.xml: Define i386_eflags.
5795 * features/i386/64bit-core.xml: Likewise.
5796
5797 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5798 * features/i386/64bit-sse.xml: Likewise.
5799
5800 * features/i386/amd64-linux.c: Regenerated.
5801 * features/i386/amd64.c: Likewise.
5802 * features/i386/i386-linux.c: Likewise.
5803 * features/i386/i386.c: Likewise.
5804
5805 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5806
5807 * gdbtypes.c (append_composite_type_field_raw): New.
5808 (append_composite_type_field_aligned): Use the new function.
5809 * gdbtypes.h (append_composite_type_field_raw): Declare.
5810 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5811 (struct tdesc_type_flag): New type.
5812 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5813 kind. Add size to u.u. Add u.f for flags.
5814 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5815 (tdesc_free_type): Likewise.
5816 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5817 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5818 (tdesc_add_bitfield, tdesc_add_flag): New.
5819 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5820 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5821 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5822 current_type. Add current_type_size and current_type_is_flags.
5823 (tdesc_start_union): Clear the new fields.
5824 (tdesc_start_struct, tdesc_start_flags): New.
5825 (tdesc_start_field): Handle struct fields, including bitfields.
5826 (field_attributes): Make type optional. Add start and end.
5827 (union_children): Rename to struct_union_children.
5828 (union_attributes): Rename to struct_union_attributes. Add optional
5829 size.
5830 (flags_attributes): New.
5831 (feature_children): Add struct and flags.
5832 * features/gdb-target.dtd: Add flags and struct to features.
5833 Make field type optional. Add field start and end.
5834
5835 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5836
5837 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5838 (amd64_linux_read_description): Likewise.
5839 (_initialize_amd64_linux_nat): Set to_read_description to
5840 amd64_linux_read_description.
5841
5842 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5843 (amd64_linux_register_name): Removed.
5844 (amd64_linux_register_type): Likewise.
5845 (amd64_linux_core_read_description): New.
5846 (amd64_linux_init_abi): Set target description to
5847 tdesc_amd64_linux if needed. Support orig_rax in target
5848 description. Don't call set_gdbarch_register_name nor
5849 set_gdbarch_register_type. Call
5850 set_gdbarch_core_read_description.
5851 (_initialize_amd64_linux_tdep): Call
5852 initialize_tdesc_amd64_linux.
5853
5854 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5855
5856 * amd64-tdep.c: Include "features/i386/amd64.c".
5857 (amd64_register_names): Removed.
5858 (amd64_register_name): Likewise.
5859 (amd64_register_type): Likewise.
5860 (amd64_init_abi): Set num_core_regs and register_names. Set
5861 target description to tdesc_amd64 if needed. Don't call
5862 set_gdbarch_register_name nor set_gdbarch_register_type.
5863 (_initialize_amd64_tdep): New.
5864
5865 * i386-linux-nat.c (i386_linux_read_description): New.
5866 (_initialize_i386_linux_nat): Set to_read_description to
5867 i386_linux_read_description.
5868
5869 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5870 (i386_linux_register_name): Removed.
5871 (i386_linux_core_read_description): New.
5872 (i386_linux_read_description): Likewise.
5873 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5874 Set target description to tdesc_i386_linux if needed. Support
5875 orig_eax. Set register_reggroup_p. Call
5876 set_gdbarch_core_read_description.
5877 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5878
5879 * i386-linux-tdep.h (tdesc_i386_linux): New.
5880
5881 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5882 with I387_NUM_REGS.
5883
5884 * i386-tdep.c: Include "features/i386/i386.c".
5885 (i386_register_names): Make it const.
5886 (i386_mmx_names): Likewise.
5887 (i386_num_register_names): Removed.
5888 (i386_register_name): Likewise.
5889 (i386_eflags_type): Likewise.
5890 (i386_mxcsr_type): Likewise.
5891 (i386_sse_type): Likewise.
5892 (i386_register_type): Likewise.
5893 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5894 (i386_pseudo_register_name): New.
5895 (i386_pseudo_register_type): Likewise.
5896 (i386_mmx_type): Make it static.
5897 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5898 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5899 call set_gdbarch_register_name nor set_gdbarch_register_type.
5900 Set register_reggroup_p. Set target description to tdesc_i386
5901 if needed. Call set_tdesc_pseudo_register_type,
5902 set_tdesc_pseudo_register_name and tdesc_use_registers.
5903 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5904 initialize_tdesc_x86_64.
5905
5906 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5907 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5908 register_names, tdesc and register_reggroup_p.
5909 (I386_NUM_FREGS): Removed.
5910 (i386_eflags_type): Likewise.
5911 (i386_mxcsr_type): Likewise.
5912 (i386_mmx_type): Likewise.
5913 (i386_sse_type): Likewise.
5914 (i386_register_name): Likewise.
5915 (i386_regnum): Add I386_MXCSR_REGNUM.
5916 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5917
5918 * i387-tdep.h (I387_NUM_REGS): New.
5919
5920 * regformats/i386/i386-linux.dat: Generated.
5921 * regformats/i386/i386.dat: Likewise.
5922 * regformats/i386/amd64-linux.dat: Likewise.
5923 * regformats/i386/amd64.dat: Likewise.
5924
5925 * regformats/reg-i386-linux.dat: Removed.
5926 * regformats/reg-i386.dat: Likewise.
5927 * regformats/reg-x86-64-linux.dat: Likewise.
5928 * regformats/reg-x86-64.dat: Likewise.
5929
5930 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5931
5932 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5933 cygwin_conv_path API rather than the deprecated
5934 cygwin_conv_to_full_posix_path.
5935 * windows-nat.c:
5936 (GetModuleFileNameExA): Undefine for Cygwin.
5937 (GetModuleFileNameExW): Define for Cygwin.
5938 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5939 Call GetModuleFileNameExW and convert path to POSIX using
5940 cygwin_conv_path.
5941 (windows_make_so): Always define p. Drop unused variable m.
5942 Don't use Win32 functions to check file existance, rather use
5943 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5944 Use canonicalize_file_name to get full path.
5945 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5946 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5947 use correct target buffer size in call to WideCharToMultiByte.
5948 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5949 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5950 (windows_create_inferior): Convert all paths and arguments to wchar_t
5951 and use CreateProcessW on Cygwin.
5952 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5953 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5954 (bad_GetModuleFileNameExW): Define for Cygwin.
5955 (_initialize_loadable): Load GetModuleFileNameExW into
5956 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5957
5958 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5959
5960 PR python/11036
5961 * python/py-frame.c (frapy_read_var): Add block argument and logic
5962 to cope with user provided blocks.
5963
5964 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5965
5966 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5967 New comment.
5968
5969 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5970
5971 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5972 (COMMON_OBS): ... to here since it's used unconditionally.
5973 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5974 (SFILES): To here.
5975
5976 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5977
5978 * mips-linux-tdep.c: Update struct sigframe comments.
5979 (SIGFRAME_CODE_OFFSET): Delete macro.
5980 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5981 this_frame's sp.
5982 (mips_linux_n32n64_sigframe_init): Same.
5983
5984 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5985
5986 * remote-mips.c (mips_load): Don't use pseudo-register when
5987 invalidating regcache.
5988
5989 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5990
5991 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5992
5993 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5994
5995 * NEWS: Add "New targets" section, and mention ARM Symbian
5996 support.
5997
5998 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5999
6000 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
6001 add ADDR_SIZE member.
6002 (allocate_piece_closure): Update.
6003 (copy_pieced_value_closure): Likewise.
6004 (dwarf2_evaluate_loc_desc): Likewise.
6005 (read_pieced_value): Use DWARF address size instead of
6006 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
6007
6008 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
6009 Tom Tromey <tromey@redhat.com>
6010
6011 * python/py-type.c (typy_lookup_typename): Add in block argument.
6012 If provided restrict lookup to specified blocks.
6013 (gdbpy_lookup_type): Likewise.
6014 (typy_lookup_type): Likewise.
6015
6016 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
6017
6018 Symbian config
6019
6020 gdb/
6021 * arm-symbian-tdep.c: New.
6022 * configure.tgt (arm*-*-symbianelf*): New target.
6023 (*-*-symbianelf*): New OS.
6024 * osabi.c (gdb_osabi_names): Add Symbian.
6025 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
6026 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
6027 (ALLDEPFILES): Add arm-symbian-tdep.c.
6028
6029 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
6030
6031 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
6032
6033 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6034
6035 * mi/mi-main.c (mi_cmd_execute): Fix typo.
6036
6037 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
6038 Tom Tromey <tromey@redhat.com>
6039 Thiago Jung Bauermann <bauerman@br.ibm.com>
6040
6041 * python/python.c (_initialize_python): Call
6042 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
6043 gdbpy_initialize_blocks.
6044 * python/python-internal.h: Declare struct symbol, block and
6045 symtab_and_line. Declare block_object_type and
6046 symbol_object_type
6047 (gdbpy_lookup_symbol gdbpy_block_for_pc)
6048 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
6049 (symbol_to_symbol_object, block_to_block_object)
6050 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
6051 (gdbpy_initialize_blocks ): Declare.
6052 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
6053 (frapy_select): Add methods.
6054 (frapy_read_var): Add symbol branch.
6055 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
6056 py-block.
6057 (SUBDIR_PYTHON_SRCS): Likewise.
6058 (py-symbol.o): New rule.
6059 (py-symtab.o): Likewise.
6060 (py-block.o): Likewise.
6061 * python/py-symbol.c: New file.
6062 * python/py-symtab.c: Likewise.
6063 * python/py-block.c: Likewise.
6064
6065 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6066
6067 PR gdb/11321
6068
6069 * inferior.h (prepare_for_detach): Declare.
6070 (struct inferior) <detaching>: New field.
6071 * infrun.c (prepare_for_detach): New.
6072 (handle_inferior_event) <random signal>: Don't stop if detaching.
6073 * target.c (target_detach): Call prepare_for_detach.
6074
6075 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6076
6077 Per-process displaced stepping queue.
6078
6079 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
6080 (displaced_step_gdbarch, displaced_step_closure,
6081 (displaced_step_original, displaced_step_copy): Move globals to
6082 this...
6083 (struct displaced_step_inferior_state): ... new structure.
6084 (displaced_step_inferior_states): New global.
6085 (get_displaced_stepping_state, add_displaced_stepping_state)
6086 (remove_displaced_stepping_state, infrun_inferior_exit): New
6087 functions.
6088 (displaced_step_clear): Add displaced_step_inferior_state
6089 parameter, and adjust to handle it.
6090 (displaced_step_clear_cleanup): Parameter is now a
6091 displaced_step_inferior_state. Adjust.
6092 (displaced_step_prepare): Adjust.
6093 (displaced_step_fixup, displaced_step_fixup)
6094 (infrun_thread_ptid_changed, resume): Adjust.
6095 (init_wait_for_inferior): Don't call displaced_step_clear.
6096 (infrun_thread_stop_requested): Rewrite.
6097 (_initialize_infrun): Install infrun_inferior_exit as
6098 inferior_exit observer.
6099
6100 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6101
6102 * inferior.h (ptid_match): Declare.
6103 * infrun.c (ptid_match): New.
6104 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
6105 (handle_notification): Add debug output.
6106 * linux-nat.c (ptid_match): Delete.
6107
6108 2010-02-24 David S. Miller <davem@davemloft.net>
6109
6110 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6111 * syscalls/sparc-linux.xml: New.
6112 * syscalls/sparc64-linux.xml: New.
6113 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6114 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6115 (sparc32_linux_get_syscall_number): New function.
6116 (sparc32_linux_init_abi): Set syscall XML file name and hook up
6117 syscall number fetcher.
6118 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6119 (sparc64_linux_get_syscall_number): New function.
6120 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6121 syscall number fetcher.
6122
6123 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6124
6125 Multiexec MI
6126
6127 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6128 * inferior.c (add_inferior_silent): Notify inferior_added
6129 observer.
6130 (delete_inferior_1): Notify inferior_removed observer.
6131 (exit_inferior_1): Pass inferior, not pid, to observer.
6132 (inferior_appeared): Likewise.
6133 (add_inferior_with_spaces): New.
6134 (add_inferior_command): Use the above.
6135 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6136 Declare.
6137
6138 * inflow.c (inflow_inferior_exit): Likewise.
6139 * jit.c (jit_inferior_exit_hook): Likewise.
6140
6141 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6142 remove-inferior.
6143 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6144 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6145 (report_initial_inferior): New.
6146 (mi_inferior_removed): Register the above. Make sure
6147 inferior_added observer is called on the first inferior.
6148 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6149 inferior number, not pid.
6150 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6151 affected.
6152 * mi/mi-main.c (current_context): New.
6153 (proceed_thread_callback): Use typed closure.
6154 Proceed everything if pid is 0. Most implementation split into
6155 (proceed_thread): ... this.
6156 (run_one_inferior): New.
6157 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6158 Adjust for multiexec behaviour.
6159 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6160 (mi_cmd_execute): Handle the 'thread-group' option here.
6161 Do some extra checks.
6162 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6163 options.
6164 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6165
6166 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6167
6168 Make -exec-run a proper MI commands.
6169
6170 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6171 * mi/mi-cmds.c (mi_cmds): Adjust.
6172 * mi/mi-main.c (mi_cmd_exec_run): New.
6173
6174 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6175 Stan Shebs <stan@codesourcery.com>
6176
6177 * tracepoint.h (set_traceframe_number)
6178 (cleanup_restore_current_traceframe): Declare.
6179 * tracepoint.c (set_traceframe_number): New.
6180 (struct current_traceframe_cleanup): New.
6181 (do_restore_current_traceframe_cleanup)
6182 (restore_current_traceframe_cleanup_dtor)
6183 (make_cleanup_restore_current_traceframe): New.
6184 * infrun.c: Include tracepoint.h.
6185 (fetch_inferior_event): Switch out and in of tfind mode.
6186
6187 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6188
6189 * breakpoint.c (breakpoint_init_inferior): Also delete
6190 bp_shlib_event breakpoints.
6191 * solib-frv.c (enable_break): Remove call to
6192 remove_solib_event_breakpoints.
6193 * solib-svr4.c (enable_break): Ditto.
6194 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6195 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6196 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6197 * solib-spu.c (spu_enable_break): Ditto.
6198
6199 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6200
6201 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6202
6203 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6204
6205 * varobj.c (varobj_update): Avoid non-constants in initializers.
6206
6207 2010-02-23 Tom Tromey <tromey@redhat.com>
6208
6209 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6210 handle big-endian values.
6211 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6212
6213 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6214
6215 PR9605
6216
6217 gdb/
6218 * breakpoint.c (insert_bp_location): If inserting the read
6219 watchpoint failed, fallback to an access watchpoint.
6220 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6221 if the value changed, if not watching the same memory for writes.
6222 (watchpoint_locations_match): Add comment.
6223 (update_global_location_list): Copy the location's watchpoint type.
6224 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6225 handle read watchpoints here.
6226 (i386_insert_watchpoint): Read watchpoints aren't supported.
6227 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6228 packets.
6229 * target.h (target_insert_watchpoint): Update description.
6230
6231 2010-02-19 Tom Tromey <tromey@redhat.com>
6232
6233 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6234 * m2-typeprint.c (m2_print_type): Update.
6235 * gdbtypes.c (recursive_dump_type): Update.
6236 (copy_type_recursive): Update.
6237 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6238 (c_type_print_base): Update.
6239 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6240 Remove.
6241 (struct cplus_struct_type) <ntemplate_args>: Remove.
6242 <struct template_arg>: Remove.
6243 <is_dynamic>: Move earlier.
6244 (TYPE_TEMPLATE_ARGS): Remove.
6245 (TYPE_NTEMPLATE_ARGS): Remove.
6246 (TYPE_TEMPLATE_ARG): Remove.
6247
6248 2010-02-19 Tom Tromey <tromey@redhat.com>
6249
6250 PR c++/8693, PR c++/9496:
6251 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6252 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6253 write_dollar_variable. Don't try to classify NAME tokens.
6254 (token_and_value): New type.
6255 (token_fifo, popping, name_obstack): New globals.
6256 (classify_name): New function.
6257 (classify_inner_name): Likewise.
6258 (yylex): Likewise.
6259 (VARIABLE): Now has type sval.
6260 (exp : VARIABLE): Call write_dollar_variable.
6261 (qualified_name): Use TYPENAME, not typebase. Add production for
6262 multiple "::" instances.
6263 (variable): Use name_not_typename.
6264 (qualified_type): Remove.
6265 (typebase): Update.
6266
6267 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6268
6269 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6270 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6271 found by bfd_get_section_by_name.
6272 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6273
6274 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6275
6276 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6277 7.0 section" into "Changes in 7.1".
6278
6279 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6280
6281 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6282 * version.in: Bump version to 7.1.50.20100219-cvs.
6283
6284 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6285
6286 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6287 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6288
6289 2010-02-17 Tom Tromey <tromey@redhat.com>
6290
6291 * NEWS: Add Python API Improvements section.
6292
6293 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6294
6295 * NEWS: Correct typo.
6296
6297 2010-02-17 Tom Tromey <tromey@redhat.com>
6298
6299 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6300
6301 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6302
6303 * symfile.c (build_section_addr_info_from_objfile): Include sections
6304 only if they are SEC_ALLOC or SEC_LOAD.
6305
6306 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6307
6308 PR shlibs/11293
6309 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6310 of ULONGEST for address size.
6311
6312 2010-02-17 Tom Tromey <tromey@redhat.com>
6313
6314 * NEWS: Add C++ improvements section.
6315
6316 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6317
6318 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6319 PyThreadState_Swap): Avoid "statement with no effect" warning.
6320
6321 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6322
6323 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6324 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6325
6326 2010-02-17 Tristan Gingold <gingold@adacore.com>
6327 Petr Hluzin <petr.hluzin@gmail.com>
6328
6329 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6330 gdb_assert. Fix info->size for SIG prologue.
6331
6332 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6333
6334 * infcmd.c (show_inferior_tty_command): Check for NULL.
6335 Correct output message.
6336
6337 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6338
6339 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6340 FUNCTION contains parentheses. Improve removal of a trailing
6341 single quote.
6342
6343 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6344
6345 * gcore.c (do_bfd_delete_cleanup): New function.
6346 (gcore_command): Use it. Discard the cleanup after success.
6347 (gcore_copy_callback): Delete dead code.
6348
6349 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6350
6351 * symfile.c (addr_info_make_relative): Always use
6352 find_lowest_section.
6353
6354 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6355
6356 * NEWS: Added entry for namespace fixes.
6357
6358 2010-02-15 Tom Tromey <tromey@redhat.com>
6359
6360 * dwarf2read.c (guess_structure_name): Allocate name on the
6361 objfile obstack.
6362
6363 2010-02-15 Tom Tromey <tromey@redhat.com>
6364
6365 * c-typeprint.c (c_type_print_base): Reverse order of test.
6366
6367 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6368
6369 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6370 initialize it from ELF BFD. Extend the prelink condition by it.
6371
6372 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6373
6374 * defs.h (parse_pid_to_attach): New.
6375 * utils.c (parse_pid_to_attach): New.
6376 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6377 * gnu-nat.c (gnu_attach): Likewise.
6378 * nto-procfs.c (procfs_attach): Likewise.
6379 * procfs.c (procfs_attach): Likewise.
6380 * windows-nat.c (windows_attach): Likewise.
6381 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6382 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6383 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6384 check.
6385
6386 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6387
6388 * MAINTAINERS: Add myself for write after approval privileges.
6389
6390 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6393 block.
6394
6395 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6396
6397 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6398 only if INFO_VERBOSE.
6399
6400 2010-02-12 Tomas Holmberg <th@virtutech.com>
6401
6402 * mi/mi-main.c: Added the --reverse flag to the following MI
6403 commands: exec-continue, exec-finish, exec-next, exec-step,
6404 exec-next-instruction, exec-step-instruction. This is to
6405 support reverse execution over the MI interface to gdb.
6406
6407 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6408
6409 * tracepoint.c (_initialize_tracepoint): Specify that the address
6410 range of `tfind outsize' is exclusive, and that the address range
6411 of `tfind range' is inclusive, in the commands' help strings.
6412
6413 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6414
6415 Spurious "dll not found" error messages on x64-windows.
6416 * windows-nat.c: Add include of complaints.h.
6417 (handle_unload_dll): Change dll-not-found error into a complaint.
6418
6419 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6420
6421 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6422 bp_tracepoint and bp_fast_tracepoint, not
6423 bp_loc_software_breakpoint.
6424 (update_global_location_list): Tracepoints are never duplicates of
6425 anything.
6426
6427 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6428
6429 * breakpoint.c (break_command_really): Change return type to int.
6430 Return false if no breakpoint was created, true otherwise.
6431 (trace_command): Don't set the tracepoint count if no tracepoint
6432 was created.
6433 (ftrace_command): Ditto.
6434 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6435 created in the breakpoints table.
6436
6437 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6438 Ulrich Weigand <uweigand@de.ibm.com>
6439
6440 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6441
6442 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6443
6444 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6445 the offset value isn't of integral type.
6446
6447 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6450 New.
6451
6452 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6453
6454 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6455 non-subscriptable types.
6456 * valarith.c (binop_types_user_defined_p): New, abstracted out
6457 from ...
6458 (binop_user_defined_p): ... this.
6459 * value.h (binop_types_user_defined_p): Declare.
6460
6461 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6462
6463 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6464 Merge uploaded TSVs before merging uploaded tracepoints.
6465
6466 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6467
6468 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6469
6470 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6471
6472 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6473 whitespace character after a dot in comment.
6474 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6475 Likewise.
6476 (list_args_or_locals): For the 'all' (that is
6477 -stack-list-variables) case, always output list of tuples.
6478 Output 'arg' field if variable is argument.
6479
6480 2010-02-10 Tom Tromey <tromey@redhat.com>
6481
6482 * parser-defs.h (parser_debug): Declare.
6483 * parse.c (_initialize_parse): Install "debug parser" set/show
6484 command.
6485 (parser_debug): New global.
6486 (show_parserdebug): New function.
6487 * c-exp.y (c_parse): Set yydebug.
6488
6489 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6490
6491 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6492 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6493 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6494 i386_mxcsr.
6495 (tdesc_find_type): New.
6496 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6497 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6498
6499 * target-descriptions.h (tdesc_find_type): New.
6500
6501 2010-02-10 Michael Snyder <msnyder@vmware.com>
6502
6503 * gdb-gdb.py: Comment fix.
6504
6505 2010-02-09 Tristan Gingold <gingold@adacore.com>
6506
6507 * machoread.c (macho_symfile_relocate): New function.
6508 (macho_sym_fns): Use macho_symfile_relocate instead of
6509 default_symfile_relocate.
6510 (macho_oso_data): New type.
6511 (current_oso): New variable.
6512 (macho_add_oso_symfile): Do not compute section_addr_info, but
6513 instead set vma of sections.
6514 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6515 Set and clear current_oso.
6516
6517 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6518
6519 Wrong type description for tagged type parameter.
6520 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6521 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6522 reference to a tagged type.
6523
6524 2010-02-09 Tristan Gingold <gingold@adacore.com>
6525
6526 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6527 brothers of the parent.
6528
6529 2010-02-08 Tom Tromey <tromey@redhat.com>
6530
6531 PR c++/8017:
6532 * value.h: Update.
6533 * valops.c (search_struct_field): Make 'name' const.
6534 (search_struct_method): Likewise.
6535 (find_method_list): Make 'method' const.
6536 (value_struct_elt): Make 'name' and 'err' const.
6537 (value_find_oload_method_list): Make 'method' const.
6538 (find_overload_match): Make 'name' const.
6539 * eval.c (evaluate_subexp_standard): New locals function,
6540 function_name.
6541 <OP_FUNCALL>: Handle OP_SCOPE specially.
6542
6543 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6544
6545 * infrun.c (handle_inferior_event): Do not look up regcache
6546 for exited processes.
6547
6548 2010-02-08 Chris Moller <moller@mollerware.com>
6549
6550 PR gdb/10728
6551 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6552 warn if found, and assume length = 1.
6553
6554 2010-02-08 Chris Moller <cmoller@redhat.com>
6555
6556 PR gdb/9067
6557 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6558 (cp_print_static_field) Fix use of obstacks.
6559
6560 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6561
6562 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6563 resumed LWPs as resumed.
6564 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6565 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6566 of throwing an internal error. If an LWP of a process we're not
6567 waiting for reports a signal, don't force collecting a SIGSTOP,
6568 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6569 go through all LWPs cancelling breakpoints in non-stop mode.
6570 (resume_stopped_resumed_lwps): New.
6571 (linux_nat_wait): Use it.
6572
6573 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6574
6575 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6576 i386/amd64 and i386/amd64-linux.
6577 (i386/i386-expedite): New.
6578 (i386/i386-linux-expedite): Likewise.
6579 (i386/amd64-expedite):Likewise.
6580 (i386/amd64-linux-expedite): Likewise.
6581 ($(outdir)/i386/i386-linux.dat): Likewise.
6582 ($(outdir)/i386/amd64.dat): Likewise.
6583 ($(outdir)/i386/amd64-linux.dat): Likewise.
6584
6585 * features/i386/32bit-core.xml: New.
6586 * features/i386/32bit-linux.xml: Likewise.
6587 * features/i386/32bit-sse.xml: Likewise.
6588 * features/i386/64bit-core.xml: Likewise.
6589 * features/i386/64bit-linux.xml: Likewise.
6590 * features/i386/64bit-sse.xml: Likewise.
6591 * features/i386/i386-linux.xml: Likewise.
6592 * features/i386/i386.xml: Likewise.
6593 * features/i386/amd64-linux.xml: Likewise.
6594 * features/i386/amd64.xml: Likewise.
6595 * features/i386/i386-linux.c: Likewise.
6596 * features/i386/i386.c: Likewise.
6597 * features/i386/amd64-linux.c: Likewise.
6598 * features/i386/amd64.c: Likewise.
6599
6600 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6601
6602 PR c++/7935:
6603 * cp-support.h: Added char* alias element to using_direct data
6604 struct.
6605 (cp_add_using): Added char* alias argument.
6606 (cp_add_using_directive): Ditto.
6607 * cp-namespace.c: Updated with the above changes.
6608 (cp_lookup_symbol_imports): Check for aliases.
6609 * dwarf2read.c (read_import_statement): Figure out local alias
6610 for the import and pass it on to cp_add_using.
6611 (read_namespace): Pass alias argument to cp_add_using.
6612
6613 2010-02-05 Hui Zhu <teawater@gmail.com>
6614
6615 * defs.h (gdb_bfd_errmsg): New extern.
6616 * exec.c (exec_file_attach): Change bfd_errmsg to
6617 gdb_bfd_errmsg.
6618 * utils.c (AMBIGUOUS_MESS1): New macro.
6619 (AMBIGUOUS_MESS2): New macro.
6620 (gdb_bfd_errmsg): New function.
6621
6622 2010-02-04 Doug Evans <dje@google.com>
6623
6624 * solib-svr4.c (enable_break): Add comment.
6625
6626 2010-02-04 Anthony Green <green@moxielogic.com>
6627
6628 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6629 gracefully.
6630
6631 2010-02-04 Tom Tromey <tromey@redhat.com>
6632
6633 * valops.c (search_struct_field): Account for
6634 value_embedded_offset. Fix check for virtual base past the end of
6635 the object. Use value_copy when making a slice of the value.
6636
6637 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6638
6639 PR tui/9622
6640 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6641 only if gdb_stdout is a tty.
6642
6643 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6644
6645 * target-descriptions.c: Include "osabi.h".
6646 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6647 OSABI.
6648
6649 2010-02-04 Tristan Gingold <gingold@adacore.com>
6650
6651 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6652 (macho_symtab_read): Adjust calls to macho_add_oso.
6653 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6654 (macho_symfile_read): Adjust call to macho_oso_symfile.
6655 (macho_new_init): Move this function after declarations.
6656 (macho_symfile_init): Ditto.
6657 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6658 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6659
6660 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6661
6662 Include MI command in remotelog.
6663
6664 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6665
6666 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6667
6668 * remote.c (remote_state): Remove gdbarch.
6669 (init_remote_state): Don't set gdbarch.
6670 (remote_query_supported): Pass target_gdbarch instead of
6671 rs->gdbarch to gdbarch_qsupported.
6672
6673 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6674
6675 * gdbarch.sh: Add qsupported.
6676
6677 * gdbarch.c: Regenerated.
6678 * gdbarch.h: Likewise.
6679
6680 * remote.c (remote_state): Add gdbarch.
6681 (init_remote_state): Set gdbarch.
6682 (remote_query_supported): Support gdbarch_qsupported.
6683
6684 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6685
6686 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6687 __FreeBSD_kernel_version.
6688
6689 2010-02-03 Tristan Gingold <gingold@adacore.com>
6690
6691 * symfile.h (struct sym_fns): Add sym_relocate field.
6692 (default_symfile_relocate): New prototype.
6693 (symfile_relocate_debug_section): First argument is now an objfile.
6694 * symfile.c (default_symfile_relocate): Rename from
6695 symfile_relocate_debug_section, first argument is now an objfile.
6696 (symfile_relocate_debug_section): New function.
6697 * coffread.c (coff_sym_fns): Set sym_relocate field.
6698 * somread.c (som_sym_fns): Ditto.
6699 * mipsread.c (ecoff_sym_fns): Ditto.
6700 * machoread.c (macho_sym_fns): Ditto.
6701 * elfread.c (elf_sym_fns): Ditto.
6702 * dwarf2read.c (dwarf2_read_section): Ditto.
6703 * xcoffread.c (xcoff_sym_fns): Ditto.
6704 * dbxread.c (aout_sym_fns): Ditto.
6705 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6706 (elfstab_build_psymtabs): Ditto.
6707
6708 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6709
6710 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6711
6712 2010-02-02 Tom Tromey <tromey@redhat.com>
6713
6714 * valops.c (value_cast_structs): Try downcasting using the RTTI
6715 type.
6716
6717 2010-02-02 Tom Tromey <tromey@redhat.com>
6718
6719 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6720 (gnuv2_baseclass_offset): Now static.
6721 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6722 * gnu-v2-abi.h: Remove.
6723
6724 2010-02-02 Tom Tromey <tromey@redhat.com>
6725
6726 * m2-typeprint.c (m2_record_fields): Don't use
6727 TYPE_DECLARED_TYPE.
6728 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6729 (struct main_type) <flag_declared_class>: New field.
6730 (struct cplus_struct_type) <declared_type>: Remove.
6731 <ntemplate_args>: Move earlier.
6732 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6733 (DECLARED_TYPE_TEMPLATE): Remove.
6734 (TYPE_DECLARED_TYPE): Remove.
6735 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6736 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6737 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6738 TYPE_DECLARED_TYPE.
6739
6740 2010-02-02 Tom Tromey <tromey@redhat.com>
6741
6742 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6743 * valops.c (search_struct_field): Compute nbases after calling
6744 CHECK_TYPEDEF.
6745 (check_field): Call CHECK_TYPEDEF.
6746 * cp-valprint.c (cp_print_value): Pass correct address to
6747 baseclass_offset. Fix check for virtual base past the end of the
6748 object. Don't offset address passed to cp_print_value_fields or
6749 apply_val_pretty_printer.
6750 (cp_print_value_fields): Fix call to val_print.
6751 (cp_print_value_fields_rtti): New function.
6752 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6753 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6754 val_print.
6755 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6756 offset to address.
6757 * language.h (struct language_defn) <la_val_print>: Document.
6758 * c-lang.h (cp_print_value_fields_rtti): Declare.
6759
6760 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6761
6762 PR libc/11214:
6763 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6764 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6765 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6766
6767 2010-02-01 Michael Matz <matz@suse.de>
6768 Daniel Jacobowitz <dan@codesourcery.com>
6769
6770 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6771 functions use a frame pointer.
6772
6773 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6774
6775 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6776 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6777 * config/djgpp/fnchange.lst: Add translations for
6778 symbol-without-target_section.exp and symbol-without-target_section.c.
6779
6780 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6781
6782 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6783 (remote_breakpoint_for_pc): Correct invalid_p check.
6784 * gdbarch.c: Regenerated.
6785
6786 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6787
6788 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6789 arm_pc_is_thumb.
6790 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6791 (extend_buffer_earlier): New function.
6792 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6793 (arm_adjust_breakpoint_address): New function.
6794 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6795
6796 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6797
6798 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6799 (arm_linux_thumb2_le_breakpoint): New constants.
6800 (arm_linux_init_abi): Set thumb2_breakpoint and
6801 thumb2_breakpoint_size.
6802 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6803 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6804 Implement support for single stepping through IT blocks if
6805 a 32-bit Thumb breakpoint instruction is available.
6806 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6807 is available, use it when needed.
6808 (arm_remote_breakpoint_from_pc): New function.
6809 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6810 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6811 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6812
6813 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6814
6815 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6816 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6817 * gdbarch.c, gdbarch.h: Regenerated.
6818 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6819 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6820 gdbarch_remote_breakpoint_from_pc.
6821
6822 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6823
6824 * infrun.c (prepare_to_proceed): Handle other signals which might
6825 match a breakpoint.
6826 (handle_inferior_event): Move the check for unusual breakpoint
6827 signals earlier.
6828
6829 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6830
6831 amd64 - function returning record with field straddling 2 registers.
6832 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6833 a record of length <= 16 in which a field straddles the two
6834 eightbytes.
6835
6836 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6837
6838 Implement return values on amd64-windows.
6839 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6840 (amd64_windows_return_value): New function.
6841 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6842 amd64_windows_return_value.
6843
6844 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6845
6846 amd64-windows: 32 bytes allocated on stack by caller for integer
6847 parameter registers.
6848 * i386-tdep.h (struct gdbarch_tdep): Add new field
6849 integer_param_regs_saved_in_caller_frame.
6850 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6851 tdep->integer_param_regs_saved_in_caller_frame to 1.
6852 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6853 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6854
6855 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6856
6857 amd64-windows: memory args passed by pointer during function calls.
6858 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6859 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6860 where tdep->memory_args_by_pointer is non-zero.
6861 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6862 tdep->memory_args_by_pointer to 1.
6863
6864 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6865
6866 amd64-windows: Integer parameters in function calls.
6867 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6868 amd64-tdep.c.
6869 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6870 call_dummy_integer_regs, and classify.
6871 * amd64-tdep.h (amd64_classify): Add declaration.
6872 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6873 (amd64_reg_class): Delete, moved to i386-tdep.h.
6874 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6875 Replace call to amd64_classify by call to tdep->classify.
6876 (amd64_push_arguments): Get the list of registers to use for
6877 passing integer parameters from the gdbarch tdep structure,
6878 rather than using a hardcoded one. Replace calls to amd64_classify
6879 by calls to tdep->classify.
6880 (amd64_push_dummy_call): Get the register number used for
6881 the "hidden" argument from tdep->call_dummy_integer_regs.
6882 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6883 and tdep->call_dummy_integer_regs. Set tdep->classify.
6884 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6885 (amd64_windows_dummy_call_integer_regs): New static global.
6886 (amd64_windows_classify): New function.
6887 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6888 tdep->call_dummy_integer_regs and tdep->classify.
6889
6890 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6891
6892 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6893 for the new regcache. All callers updated.
6894 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6895 (get_thread_arch_regcache): Do not set aspace here.
6896 * regcache.h (regcache_xmalloc): Update declaration.
6897
6898 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6899 regcache_xmalloc updated.
6900
6901 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6902
6903 Another -Wunused-function error in procfs.c (sparc-solaris)
6904 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6905 Only define if SYS_syssgi is defined.
6906 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6907 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6908 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6909 is itself defined.
6910
6911 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6912
6913 * windows-nat.c (windows_initialization_done): New variable.
6914 (get_windows_debug_event): Issue error when process dies before
6915 completely initializing.
6916 (do_initial_windows_stuff): Set flag to indicate when we are done with
6917 the initial steps of attaching to the child.
6918
6919 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6920
6921 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6922
6923 2010-01-27 Doug Evans <dje@google.com>
6924
6925 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6926
6927 * breakpoint.c (bpstat_stop_status): Delete useless code.
6928
6929 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6930
6931 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6932 objfile via SYMBOL_SYMTAB.
6933
6934 2010-01-26 Tom Tromey <tromey@redhat.com>
6935
6936 PR exp/7643:
6937 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6938 coerce_array on result.
6939
6940 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6941
6942 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6943 search_parent argument.
6944 (cp_add_using): Initialize 'searched' field.
6945 (reset_directive_searched): New function.
6946 * cp-support.h: Add 'searched' field to using_direct struct.
6947 (cp_lookup_symbol_imports): Ditto.
6948 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6949 Perform recursive search.
6950 Implement non parent search.
6951 * valops.c (value_maybe_namespace_elt): Updated.
6952
6953 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6954
6955 PR gdb/10929:
6956 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6957 scopes which contain using directives even if they contain no
6958 declarations.
6959 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6960 la_lookup_symbol_nonlocal.
6961 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6962 cp_lookup_symbol_namespace.
6963 (cp_lookup_symbol_namespace): Perform an import lookup at every
6964 block level.
6965 (cp_lookup_symbol_imports): New function.
6966 (cp_lookup_symbol_in_namespace): New function.
6967
6968 2010-01-25 Tom Tromey <tromey@redhat.com>
6969
6970 PR gdb/11049:
6971 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6972 result.
6973
6974 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6975
6976 * configure.ac: Only use host_os part when disabling TUI on osf.
6977 Use test to check variables, prefix strings with x.
6978 * configure: Regenerate.
6979
6980 * solib-osf.c (osf_current_sos): Initialize tail.
6981
6982 2010-01-25 gingold <gingold@adacore.com>
6983
6984 * windows-nat.c (windows_continue): Use %x to print thread id.
6985 (get_windows_debug_event): Ditto.
6986
6987 2010-01-22 Tom Tromey <tromey@redhat.com>
6988
6989 PR symtab/11199:
6990 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6991 type and arguments. Use smash_to_methodptr_type.
6992 (read_structure_type): Call quirk_gcc_member_function_pointer
6993 later.
6994 * gdbtypes.h (smash_to_methodptr_type): Declare.
6995 * gdbtypes.c (smash_to_methodptr_type): New function.
6996 (lookup_methodptr_type): Use it.
6997
6998 2010-01-21 Tom Tromey <tromey@redhat.com>
6999
7000 PR symtab/11198:
7001 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
7002 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
7003 * glibc-tdep.c (find_minsym_and_objfile): Remove.
7004 (glibc_skip_solib_resolver): Use
7005 lookup_minimal_symbol_and_objfile.
7006
7007 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
7008
7009 * inflow.c (check_syscall): Guard by #if clause for GO32 and
7010 WIN32 targets.
7011
7012 2010-01-20 Tom Tromey <tromey@redhat.com>
7013
7014 PR backtrace/10770:
7015 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
7016 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
7017 * dwarf2expr.c (new_dwarf_expr_context): Allocate
7018 dwarf_stack_values, not CORE_ADDRs.
7019 (execute_stack_op): Change DW_OP_div and comparison operators to
7020 use signed operands.
7021
7022 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
7023
7024 Per-inferior args and tty and environment.
7025
7026 * infcmd.c (inferior_args): Rename to ...
7027 (inferior_args_scratch): ... this.
7028 (inferior_io_terminal): Rename to ...
7029 (inferior_io_terminal_scratch): ... this.
7030 (inferior_argc, inferior_argv): Remove.
7031 (set_inferior_io_terminal, get_inferior_io_terminal): Store
7032 inside current_inferior().
7033 (set_inferior_tty_command, show_inferior_tty_command): New.
7034 (get_inferior_args, set_inferior_args): Store inside
7035 current_inferior().
7036 (notice_args_set): Likewise and rename to...
7037 (set_args_command): ... this.
7038 (set_inferior_args_vector): Likewise.
7039 (notice_args_read): Rename to...
7040 (show_args_command): ...new.
7041 (tty_command): Remove.
7042 (run_command_1): Don't free old args, as they are freed by
7043 set_inferior_arg now.
7044 (run_no_args_command): Likewise.
7045 (inferior_environ): Remove.
7046 (run_command_1): Use environment of the current inferior.
7047 (environment_info, set_environment_command)
7048 (unset_environment_command, path_info, path_command): Likewise.
7049 (_initialize_infcmd): Adjust for function and variable renames.
7050 Do not init inferior_environ.
7051 * inferior.h (set_inferior_arg): Adjust prototype.
7052 (struct inferior): New fields args, argc, argv, terminal, environment.
7053 (inferior_environ): Remove declaration.
7054 * inferior.c (free_inferior): Free new fields.
7055 (add_inferior_silent): Initialize 'environment' field.
7056 * main.c (captured_main): Set arguments only after the initial
7057 inferior has been created. Set set_inferior_io_terminal,
7058 not tty_command.
7059 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
7060 inferior.
7061 (_initialize_mi_cmd_env): Adjust for disappearance of global
7062 inferior_environ.
7063 * solib.c (solib_find): Use environment of the current inferior.
7064
7065 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7066
7067 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
7068 HAVE_PYTHON.
7069 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
7070
7071 2010-01-20 Joel Brobecker <brobecker@adacore.com>
7072
7073 Get rid of ada-lang.c:function_name_from_pc.
7074 * ada-lang.c: Add "stack.h" #include.
7075 (function_name_from_pc): Delete.
7076 (is_known_support_routine): Replace call to function_name_from_pc
7077 by call to find_frame_funname.
7078 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7079
7080 2010-01-19 Tom Tromey <tromey@redhat.com>
7081
7082 PR c++/11026:
7083 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
7084 objfile obstack.
7085
7086 2010-01-19 Tom Tromey <tromey@redhat.com>
7087
7088 * top.c (stop_sig, float_handler, do_nothing): Remove.
7089
7090 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7091
7092 * breakpoint.c (watchpoint_check): Check the call
7093 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
7094 Extend the comment.
7095 * config/djgpp/fnchange.lst: Add translations for
7096 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
7097 watchpoint-cond-gone-stripped.c.
7098
7099 2010-01-19 Tom Tromey <tromey@redhat.com>
7100
7101 PR c++/8000:
7102 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
7103 into parent scope, and enumerator into grandparent scope.
7104
7105 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7106
7107 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
7108
7109 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7110
7111 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7112 i[34567]86-*-solaris2.1[0-9]*.
7113 * configure.tgt: Likewise.
7114
7115 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7116
7117 * NEWS: Document the source command enhancement allowing it
7118 to load Python scripts. Document the "set/show script-extension"
7119 commands.
7120
7121 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7122
7123 Add -Wunused-function to compile flags.
7124 * configure.ac: Add -Wunused-function to build_warnings.
7125 * configure: Regenerate.
7126
7127 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7128
7129 "delete" ada-lex.c:input function, not used.
7130 * ada-lex.l: #define YY_NO_INPUT.
7131
7132 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7133
7134 Delete free_named_symtabs and associated cleanup.
7135 * symfile.h (free_named_symtabs): Delete declaration.
7136 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7137 (cashier_psymtab): Comment function out.
7138 Delete declaration.
7139 (free_named_symtabs): Delete.
7140 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7141 * dbxread.c (end_psymtab): Likewise.
7142 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7143 * exec.c (exec_close_1): Ditto.
7144 * xcoffread.c (xcoff_end_psymtab): Likewise.
7145
7146 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7147
7148 * stack.c (print_block_frame_labels): Comment function out.
7149
7150 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7151
7152 Delete unused or undefined functions.
7153 * breakpoint.c (ep_parse_optional_filename): Delete.
7154 * dcache.c (dcache_write_line): Remove declaration.
7155 * infrun.c (build_infrun): Remove declaration.
7156 * tracepoint.c (tracepoint_save_command): Remove declaration.
7157 * linux-nat.c (init_lwp_list): Delete. No longer used.
7158 * event-loop.c (check_async_signal_handlers): Delete declaration.
7159 * infrun.c (init_execution_control_state): Delete.
7160 (proceed): Update comment to avoid mentioning
7161 init_execution_control_state.
7162 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7163 * ada-lang.c (ada_to_static_fixed_value): Delete.
7164 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7165 * cp-namespace.c (cp_copy_usings): Delete.
7166 * xml-syscall.c (xml_number_of_syscalls): Delete.
7167 * progspace.c (find_program_space_by_num): Delete.
7168 * inflow.c (handle_sigio): Delete declaration.
7169 * hppa-tdep.c (hppa_alignof): Delete.
7170 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7171 (mipsnbsd_core_osabi_sniffer): Delete.
7172
7173 2010-01-18 Tom Tromey <tromey@redhat.com>
7174
7175 PR c++/9680:
7176 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7177 (CONST_CAST): New tokens.
7178 (exp): Add new productions.
7179 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7180 reinterpret_cast.
7181 (is_cast_operator): New function.
7182 (yylex): Handle cast operators specially.
7183 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7184 UNOP_REINTERPRET_CAST>: New cases.
7185 * expprint.c (print_subexp_standard): Likewise.
7186 (op_name_standard): Likewise.
7187 (dump_subexp_body_standard): Likewise.
7188 * parse.c (operator_length_standard): Likewise.
7189 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7190 UNOP_REINTERPRET_CAST.
7191 * gdbtypes.c (class_types_same_p): New function.
7192 (is_ancestor): Use it.
7193 (is_public_ancestor): New function.
7194 (is_unique_ancestor_worker): Likewise.
7195 (is_unique_ancestor): Likewise.
7196 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7197 (is_unique_ancestor): Declare.
7198 * valops.c (value_reinterpret_cast): New function.
7199 (dynamic_cast_check_1): Likewise.
7200 (dynamic_cast_check_2): Likewise.
7201 (value_dynamic_cast): Likewise.
7202 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7203
7204 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7205
7206 Fix build failure when building without Python support.
7207 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7208 is not defined.
7209
7210 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7211
7212 Use XVS field type instead of doing a parallel lookup.
7213 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7214 if it is a reference type instead of doing a type lookup using
7215 the XVS field name.
7216
7217 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7218
7219 Trust PAD types instead of using PAD___XVS.
7220 * ada-lang.c (trust_pad_over_xvs): New static variable.
7221 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7222 parallel XVS type, follow the XVS type instead of the PAD type.
7223 (unwrap_value): Make sure that there is no parallel XVE type
7224 before returning the value as is.
7225 (set_ada_list, show_ada_list): New static variables.
7226 (set_ada_command, show_ada_command): New functions.
7227 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7228 Add new "set/show ada trust-PAD-over-XVS" setting.
7229
7230 2010-01-18 Tom Tromey <tromey@redhat.com>
7231 Thiago Jung Bauermann <bauerman@br.ibm.com>
7232
7233 Allow "source" to load python scripts.
7234 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7235 * python/python.c (source_python_script): New function.
7236 * python/python.h (source_python_script): Add declaration.
7237 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7238 (script_ext_off, script_ext_soft, script_ext_strict)
7239 (script_ext_enums, script_ext_mode): New static constants.
7240 (show_script_ext_mode, find_and_open_script): New functions.
7241 (source_script): Enhance to handle Python scripts.
7242 (init_cli_cmds): Add set/show script-extension commands.
7243
7244 2010-01-16 Stan Shebs <stan@codesourcery.com>
7245
7246 * tracepoint.h (struct trace_status): Use unsigned long long
7247 instead of size_t.
7248 * tracepoint.c (trace_status_command): Fix printf directive.
7249 (trace_save_command): Check fwrite returns, fix printf directive.
7250 (trace_filename): New global.
7251 (tfile_open): Set it, check read returns.
7252 (tfile_close): Free trace_filename.
7253 (tfile_get_traceframe_address): Check read returns.
7254 (tfile_trace_find): Ditto.
7255 (tfile_fetch_registers): Ditto.
7256 (tfile_xfer_partial): Ditto.
7257 (tfile_get_trace_state_variable_value): Ditto.
7258
7259 2010-01-15 Stan Shebs <stan@codesourcery.com>
7260
7261 Add trace file support.
7262 * tracepoint.h (enum trace_stop_reason): New enum.
7263 (struct trace_status): New struct.
7264 (parse_trace_status): Declare.
7265 (struct uploaded_tp): Move here from remote.c,
7266 add fields for actions.
7267 (struct uploaded_tsv): New struct.
7268 * tracepoint.c (tfile_ops): New target vector.
7269 (trace_fd): New global.
7270 (tfile_open): New function.
7271 (tfile_close): New function.
7272 (tfile_files_info): New function.
7273 (tfile_get_trace_status): New function.
7274 (tfile_get_traceframe_address): New function.
7275 (tfile_trace_find): New function.
7276 (tfile_fetch_registers): New function.
7277 (tfile_xfer_partial): New function.
7278 (tfile_get_trace_state_variable_value): New function.
7279 (init_tfile_ops): New function.
7280 (_initialize_tracepoint): Call it, add tfile target.
7281 (trace_status): New global.
7282 (current_trace_status): New function.
7283 (trace_running_p): Remove, change all users to get from
7284 current_trace_status()->running.
7285 (get_trace_status): Remove.
7286 (trace_status_command): Call target_get_trace_status directly,
7287 report more detail including tracing stop reasons.
7288 (trace_find_command): Always allow tfind on a file.
7289 (trace_find_pc_command): Ditto.
7290 (trace_find_tracepoint_command): Ditto.
7291 (trace_find_line_command): Ditto.
7292 (trace_find_range_command): Ditto.
7293 (trace_find_outside_command): Ditto.
7294 (trace_frames_offset, cur_offset): Declare as off_t.
7295 (trace_regblock_size): Rename from reg_size, update users.
7296 (parse_trace_status): New function.
7297 (tfile_interp_line): New function.
7298 (disconnect_or_stop_tracing): Ensure current trace
7299 status before asking what to do.
7300 (stop_reason_names): New global.
7301 (trace_save_command): New command.
7302 (get_uploaded_tp): Move here from remote.c.
7303 (find_matching_tracepoint): Ditto.
7304 (merge_uploaded_tracepoints): New function.
7305 (parse_trace_status): Use stop_reason_names.
7306 (_initialize_tracepoint): Define tsave command.
7307 * target.h (target_ops): New fields to_save_trace_data,
7308 to_upload_tracepoints, to_upload_trace_state_variables,
7309 to_get_raw_trace_data, change to_get_trace_status
7310 to take a pointer to a status struct.
7311 (target_save_trace_data): New macro.
7312 (target_upload_tracepoints): New macro.
7313 (target_upload_trace_state_variables): New macro.
7314 (target_get_raw_trace_data): New macro.
7315 * target.c (update_current_target): Add new methods, change
7316 signature of to_get_trace_status.
7317 * remote.c (hex2bin): Make globally visible.
7318 (bin2hex): Ditto.
7319 (remote_download_trace_state_variable): Download name also.
7320 (remote_get_trace_status): Update parameter, use
7321 parse_trace_status.
7322 (remote_save_trace_data): New function.
7323 (remote_upload_tracepoints): New function.
7324 (remote_upload_trace_state_variables): New function.
7325 (remote_get_raw_trace_data): New function.
7326 (remote_start_remote): Use them.
7327 (_initialize_remote_ops): Add operations.
7328 * ax-gdb.c: Include breakpoint.h.
7329 * breakpoint.c (create_tracepoint_from_upload): Use
7330 break_command_really, return tracepoint, warn about unimplemented
7331 parts.
7332 * NEWS: Mention trace file addition.
7333
7334 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7335
7336 Fix compilation warning on gcc-3.4.
7337 * exec.c (print_section_info): Move the `displacement' variable
7338 initialization to its declaration.
7339
7340 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7341
7342 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7343 comparison.
7344
7345 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7346
7347 "info tasks" broken by typedefs in ATCB type definitions.
7348 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7349 ada_check_typedef before retrieving the length of the type for
7350 regular fields.
7351
7352 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7353
7354 Do not use name-based lookup for unconstrained packed arrays.
7355 * ada-lang.c (find_parallel_type_by_descriptive_type):
7356 Limit the fallback to name-based lookups to the case where
7357 the type is a constrained packed array.
7358
7359 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7360
7361 Enhance gdb-gdb.py to handle main_type.type_specific.
7362 * gdb-gdb.py: Print the type-specific part of struct main_type.
7363
7364 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7365
7366 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7367 * configure: Regenerate.
7368 * config.in: Regenerate.
7369 * utils.c: Include sys/resource.h.
7370 (dump_core, can_dump_core): New.
7371 (internal_vproblem): Update the comment. Check can_dump_core while
7372 setting dump_core_p. Replace two abort calls by dump_core calls.
7373
7374 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7375 Eli Zaretskii <eliz@gnu.org>
7376
7377 * NEWS: Document the PIE support.
7378
7379 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7380
7381 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7382 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7383
7384 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7385
7386 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7387 Replace exec_entry_point call by bfd_get_start_address.
7388
7389 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7390
7391 Support Valgrind attachments broken by the PIE support.
7392 * auxv.c: Include gdbcore.h.
7393 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7394 parameters ops, object and annex. Remove their assertions.
7395 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7396 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7397 (memory_xfer_auxv): ... here.
7398 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7399 memory_xfer_auxv.
7400 * procfs.c (procfs_xfer_partial): Likewise.
7401 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7402 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7403 (svr4_solib_create_inferior_hook): Conditionalize the
7404 svr4_relocate_main_executable call.
7405
7406 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7407
7408 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7409 target_section. Find SECT in current_target_sections, gdb_assert it.
7410 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7411 New variable abfd.
7412 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7413 of separate debug info file.
7414
7415 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 Support PIEs with no symfile_objfile.
7418 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7419 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7420
7421 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7424 code part to ...
7425 (svr4_static_exec_displacement): ... a new function.
7426 (svr4_exec_displacement): New function.
7427 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7428 new_offsets using alloca now. Remove variable old_chain and changed.
7429 Call objfile_relocate unconditionally now.
7430
7431 2010-01-14 Doug Evans <dje@google.com>
7432
7433 * gdbtypes.c (arch_flags_type): Fix comment.
7434 * gdbtypes.h (arch_composite_type): Fix comment.
7435
7436 2009-01-14 Tristan Gingold <gingold@adacore.com>
7437
7438 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7439 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7440 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7441 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7442 macho_add_oso_symfile.
7443 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7444
7445 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7446
7447 Tru64: Dead threads are never deleted.
7448 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7449 (dec_thread_count_gdb_threads): Fix counter increment.
7450 (dec_thread_add_gdb_thread): Fix *listp increment.
7451 (resync_thread_list): Fix bug in deletion of dead threads that
7452 caused all threads to be deleted, instead of just the dead ones.
7453
7454 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7455
7456 PR python/10705
7457
7458 * python/python-internal.h: Add lazy_string_object_type
7459 definition.
7460 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7461 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7462 * python/py-value.c (valpy_lazy_string): New function.
7463 (convert_value_from_python): Add lazy string conversion.
7464 * python/py-prettyprint.c (pretty_print_one_value): Check if
7465 return is also a lazy string.
7466 (print_string_repr): Add lazy string printing branch.
7467 (print_children): Likewise.
7468 * python/py-lazy-string.c: New file. Implement lazy strings.
7469 * python/python.c (_initialize_python): Call
7470 gdbpy_initialize_lazy_string.
7471 * varobj.c (value_get_print_value): Add lazy string printing
7472 branch. Account for encoding.
7473 * c-lang.c (c_printstr): Account for new encoding argument. If
7474 encoding is NULL, find encoding suited for type, otherwise use
7475 user encoding.
7476 * language.h (language_defn): Add encoding argument.
7477 (LA_PRINT_STRING): Likewise.
7478 * language.c (unk_lang_printstr): Update to reflect new encoding
7479 argument to language_defn.
7480 * ada-lang.h (ada_printstr): Likewise.
7481 * c-lang.h (c_printstr): Likewise.
7482 * p-lang.h (pascal_printstr);
7483 * f-lang.c (f_printstr): Likewise.
7484 * m2-lang.c (m2_printstr): Likewise.
7485 * objc-lang.c (objc_printstr): Likewise.
7486 * p-lang.c (pascal_printstr): Likewise.
7487 * scm-lang.c (scm_printstr): Likewise.
7488 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7489 encoding argument.
7490 * ada-valprint.c (ada_printstr): Likewise.
7491 * f-valprint.c (f_val_print): Likewise
7492 * m2-valprint.c (m2_val_print): Likewise.
7493 * p-valprint.c (pascal_val_print): Likewise.
7494 * expprint.c (print_subexp_standard): Likewise.
7495 * valprint.c (val_print_string): Likewise.
7496 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7497 (SUBDIR_PYTHON_SRCS): Likewise.
7498 (py-lazy-string.o): New rule.
7499
7500 2010-01-13 Doug Evans <dje@google.com>
7501
7502 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7503 uninitialized" warning from gcc on local `tree'.
7504
7505 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7506
7507 Implement core awareness.
7508
7509 * bcache.c (compare_ints): Remove
7510 (print_percentage): Use compare_positive_ints.
7511 * defs.h (compare_positive_ints): Declare.
7512 * linux-nat.h (struct lin_lwp): New field core.
7513 (linux_nat_core_of_thread_1): Declare.
7514 * linux-nat.c (add_lwp): Init the 'core' field.
7515 (linux_nat_wait_1): Record the core.
7516 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7517 (linux_nat_add_target): Register the above.
7518 * linux-thread-db.c (update_thread_core): New.
7519 (thread_db_find_new_threads): Update core information for
7520 every thread.
7521 * remote.c (struct private_thread_info): New.
7522 (free_private_thread_info, demand_private_info): New.
7523 (PACKET_qXfer_threads, use_osdata_threads): New.
7524 (struct thread_item, threads_parsing_context
7525 (start_thread, end_thread, thread_attributes)
7526 (thread_children, threads_children, threads_elements): New.
7527 (remote_threads_info): Try qXfer:threads before anything
7528 else.
7529 (remote_protocol_packets): Register qXfer:threads.
7530 (remote_open_1): Init use_osdata_threads.
7531 (struct stop_reply): New field 'core'.
7532 (remote_parse_stop_reply): Parse core number.
7533 (process_stop_reply): Record core number.
7534 (remote_xfer_partial): Handle qXfer:threads.
7535 (remote_core_of_thread): New.
7536 (init_remote_ops): Register remote_core_of_thread.
7537 (_initialize_remote): Register qXfer:read.
7538 * target.c (target_core_of_thread): New
7539 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7540 (struct target_ops): New field to_core_of_threads.
7541 (target_core_of_thread): Declare.
7542 * gdbthread.h (struct thread_info): New field private_dtor.
7543 * thread.c (print_thread_info): Report the core.
7544 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7545 * utils.c (compare_positive_ints): New.
7546 * features/threads.dtd: New.
7547 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7548 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7549 (do_nothing, free_vector_of_osdata_items)
7550 (splay_tree_int_comparator, free_splay_tree): New.
7551 (print_one_inferior_data): Implemented printing of selected
7552 inferiors. Collect and print cores.
7553 (output_cores): New.
7554 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7555 thread groups together with --available.
7556
7557 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7558
7559 * configure: Regenerate (for _STRUCTURED_PROC).
7560
7561 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7562
7563 Delete dead function.
7564 * ada-lang.c (extract_string): Delete. No longer used.
7565
7566 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7567
7568 Fix -Wunused warning in dec-thread.c.
7569 * dec-thread.c (dec_thread_count_gdb_threads)
7570 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7571
7572 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7573
7574 * ada-valprint.c (ada_print_floating): Remove trailing space.
7575
7576 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7577
7578 Add support for DW_AT_GNAT_descriptive_type.
7579 * gdbtypes.h (enum type_specific_kind): New enum.
7580 (struct main_type) [type_specific_field]: New component.
7581 [type_specific]: Add new component "gnat_stuff".
7582 (struct gnat_aux_type): New type.
7583 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7584 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7585 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7586 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7587 (TYPE_SPECIFIC_FIELD): New macros.
7588 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7589 type does not hold any cplus-specific data.
7590 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7591 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7592 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7593 cplus-specific data.
7594 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7595 Set new component TYPE_SPECIFIC_FIELD (type).
7596 (gnat_aux_default): New constant.
7597 (allocate_gnat_aux_type): New function.
7598 (init_type): Add initialization the type-specific stuff for
7599 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7600 (print_gnat_stuff): New function.
7601 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7602 specific data. Adjust code that prints the contents of the
7603 type-specific union using the TYPE_SPECIFIC_FIELD value.
7604 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7605 the type cplus stuff for Ada types.
7606 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7607 Error out if these routines are called with an Ada type.
7608 (read_structure_type, read_array_type, read_subrange_type):
7609 Add call to set_descriptive_type.
7610 (set_die_type): Initialize the gnat-specific data if necessary.
7611 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7612 New functions.
7613 * ada-lang.c (decode_constrained_packed_array_type): Use
7614 decode_constrained_packed_array_type instead of doing a standard
7615 lookup to locate a parallel type.
7616 (find_parallel_type_by_descriptive_type): New function.
7617 (ada_find_parallel_type_with_name): New function.
7618 (ada_find_parallel_type): Reimplement using
7619 ada_find_parallel_type_with_name.
7620 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7621 to check if type has a cplus stuff.
7622 * linespec.c (total_number_of_methods): Likewise.
7623 * mdebugread.c (new_type): Likewise.
7624
7625 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7626
7627 * NEWS: Document the 0b binary number prefix parsing.
7628
7629 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 * objfiles.c (objfile_relocate1): Change the return type to int.
7632 Describe the new return value. Return non-zero if data changed.
7633 (objfile_relocate): New variable changed. Set it. Call
7634 breakpoint_re_set depending on CHANGED.
7635
7636 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Implement binary numbers parsing.
7639 * c-exp.y (parse_number): New case 'b' and 'B'.
7640
7641 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7642 Tristan Gingold <gingold@adacore.com>
7643
7644 * solib.c (info_sharedlibrary_command): Replace
7645 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7646 objfile_has_symbols.
7647
7648 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7649
7650 * NEWS: Document the improvements made to the mips-irix port.
7651
7652 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7653
7654 Fix the documentation of valprint.c:value_print.
7655 * valprint.c (value_print): Update the function description to
7656 mention that the syntax of the output follows the current_language,
7657 not necessarily C.
7658
7659 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7660
7661 Fix displacement of separate debug info files.
7662 * objfiles.c (objfile_relocate): Rename to ...
7663 (objfile_relocate1): ... here and make it static. Extend the comment.
7664 (objfile_relocate): New function.
7665 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7666 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7667 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7668 allocated using alloca.
7669 * symfile.c (copy_section_addr_info): Remove.
7670 (build_section_addr_info_from_objfile): Make it global. New variables
7671 addr_bit and mask, use them.
7672 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7673 (copy_section_addr_info): Remove.
7674
7675 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7676
7677 Signal unwinder for mips-irix N32.
7678 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7679 tramp-frame.h.
7680 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7681 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7682 (SIGCONTEXT_LO_OFF): New macros.
7683 (mips_irix_n32_tramp_frame_init): New function.
7684 (mips_irix_n32_tramp_frame): New static constant.
7685 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7686
7687 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7688
7689 Breakpoint in shared library does not work on mips-irix.
7690 * procfs.c: #include "observer.h".
7691 (procfs_inferior_created): New function, moving here the code
7692 which unsets the syssgi syscall-exit notifications.
7693 (procfs_create_inferior): Remove the code which unsets the syssgi
7694 syscall-exit notifications. It is too early to do this here.
7695 (_initialize_procfs): Attach the procfs_inferior_created observer.
7696
7697 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7698
7699 Wrong return convention for arrays (mips-irix).
7700 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7701 128 bits or smaller are returned the same way as structs
7702 and unions of the the same size.
7703
7704 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7705
7706 Cannot set the PC on mips-irix.
7707 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7708 register number, no the cooked one.
7709
7710 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7711
7712 Error while loading core file on mips-irix.
7713 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7714 if debugging from a core file.
7715
7716 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7717
7718 GDB hangs when attaching to process on mips-irix.
7719 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7720 attaching to a process.
7721
7722 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7723
7724 Use the correct breakpoint instruction on mips-irix.
7725 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7726 containing the correct breakpoint instruction to use on mips-irix.
7727 Use it when the osabi is GDB_OSABI_IRIX.
7728
7729 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7730
7731 -Wunused warning in procfs.c (mips-irix only).
7732 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7733 throughout instead of using praddset and prdelset respectively.
7734
7735 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7736
7737 GDB crash while stepping into function.
7738 * infrun.c (handle_inferior_event): Refetch the current frame
7739 after handling what.main_action, in case that pointer became
7740 dangling.
7741
7742 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7743
7744 Fix build failure of solaris-hosted cross debuggers.
7745 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7746
7747 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7748
7749 Fix build failure on sparc-solaris.
7750 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7751
7752 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7753
7754 Move some symfile code into subroutines.
7755 * symfile.h (relative_addr_info_to_section_offsets)
7756 (addr_info_make_relative): New prototypes.
7757 * symfile.c (default_symfile_offsets): Move a part to ...
7758 (relative_addr_info_to_section_offsets): ... this new function.
7759 (default_symfile_offsets): Call it.
7760 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7761 this part to ...
7762 (addr_info_make_relative): ... this new function.
7763
7764 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7765
7766 Add from_tty to solib_create_inferior_hook.
7767 * infcmd.c (post_create_inferior): Move solib_add after
7768 solib_create_inferior_hook. Pass from_tty to
7769 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7770 0 from_tty and comment why.
7771 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7772 * linux-nat.c (linux_child_follow_fork): Likewise.
7773 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7774 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7775 from_tty.
7776 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7777 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7778 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7779 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7780 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7781 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7782 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7783 Pass it to svr4_so_ops.solib_create_inferior_hook.
7784 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7785 from_tty.
7786 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7787 solib_add.
7788 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7789 enable_break.
7790 * solib-target.c (solib_target_solib_create_inferior_hook): New
7791 parameter from_tty.
7792 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7793 it to ops->solib_create_inferior_hook.
7794 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7795 Move solib_add after solib_create_inferior_hook, call it now with
7796 from_tty as 0. New comment there.
7797 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7798 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7799 Likewise.
7800
7801 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7802
7803 Fix multiexec race.
7804 * infrun.c (handle_inferior_event): Use get_thread_regcache
7805 with events ptid, not get_current_regcache.
7806
7807 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7808
7809 GDB crash with empty executable name (MinGW).
7810 * source.c (openp): Add assert that parameter string is not NULL.
7811 if parameter string is an empty string, then return with a failure
7812 immediately.
7813
7814 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7815
7816 Get rid of support for VAX Floats.
7817 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7818 (ada_vax_float_print_function): Delete.
7819 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7820 (ada_vax_float_print_function): Delete.
7821 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7822 (ada_print_type): Remove support for VAX floats.
7823 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7824
7825 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 * stabsread.c (read_args): Handle zero arguments.
7828
7829 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7830
7831 Cannot find in-tree libiconv.a after reconfigure.
7832 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7833 that we can use, then cache the path to this archive.
7834 * configure: Regenerate.
7835
7836 2010-01-07 Stan Shebs <stan@codesourcery.com>
7837
7838 Make tracepoint operations go through target vector.
7839 * target.h (enum trace_find_type): New enum.
7840 (struct target_ops): New fields to_trace_init,
7841 to_download_tracepoint, to_download_trace_state_variable,
7842 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7843 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7844 to_set_disconnected_tracing.
7845 (target_trace_init): New macro.
7846 (target_download_tracepoint): New macro.
7847 (target_download_trace_state_variable): New macro.
7848 (target_trace_start): New macro.
7849 (target_trace_set_readonly_regions): New macro.
7850 (target_get_trace_status): New macro.
7851 (target_trace_stop): New macro.
7852 (target_trace_find): New macro.
7853 (target_get_trace_state_variable_value): New macro.
7854 (target_set_disconnected_tracing): New macro.
7855 * target.c (update_current_target): Inherit and set defaults for
7856 tracepoint operations.
7857 * tracepoint.c (default_collect): Make globally visible.
7858 (target_is_remote): Remove, along with all calls.
7859 (tvariables_info): Call target_get_trace_state_variable_value.
7860 (remote_set_transparent_ranges): Remove.
7861 (trace_start_command): Call target_trace_init,
7862 target_download_tracepoint, etc.
7863 (download_tracepoint): Remove.
7864 (trace_stop_command): Simplify.
7865 (stop_tracing): Call target_trace_stop.
7866 (get_trace_status): Call target_get_trace_status.
7867 (trace_status_command): Add case for targets that cannot trace.
7868 (finish_tfind_command): Change to take numerical arguments, call
7869 target_trace_find.
7870 (trace_find_command): Update call to finish_tfind_command.
7871 (trace_find_pc_command): Ditto.
7872 (trace_find_tracepoint_command): Ditto.
7873 (trace_find_line_command): Ditto.
7874 (trace_find_range_command): Ditto.
7875 (trace_find_outside_command): Ditto.
7876 (set_disconnected_tracing_value): Call
7877 target_set_disconnected_tracing.
7878 * remote.c: Add protocol encoding bits from tracepoint.c.
7879 (trace_error): Move from tracepoint.c.
7880 (remote_get_noisy_reply): Ditto.
7881 (free_actions_list_cleanup_wrapper): Ditto.
7882 (free_actions_list): Ditto.
7883 (remote_trace_init): New function.
7884 (remote_download_tracepoint): New function.
7885 (remote_download_trace_state_variable): New function.
7886 (remote_trace_set_readonly_regions): New function.
7887 (remote_trace_start): New function.
7888 (remote_get_trace_status): New function.
7889 (remote_trace_stop): New function.
7890 (remote_trace_find): New function.
7891 (remote_download_trace_state_variable): New function.
7892 (remote_set_disconnected_tracing): New function.
7893 (init_remote_ops): Add tracepoint operations.
7894
7895 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7896
7897 2010-01-07 Tristan Gingold <gingold@adacore.com>
7898
7899 * symfile.c (build_section_addr_info_from_objfile): New function.
7900 (symbol_file_add_separate): Don't use offsets from objfile but
7901 built an addr info.
7902
7903 2010-01-06 Stan Shebs <stan@codesourcery.com>
7904
7905 Support disconnected tracing.
7906 * infcmd.c (detach_command): Ask whether to stop tracing.
7907 * cli/cli-cmds.c (quit_command): Ditto.
7908 * breakpoint.h (struct breakpoint): New field number_on_target.
7909 * breakpoint.c (create_tracepoint_from_upload): New function.
7910 (get_tracepoint_by_number_on_target): New function.
7911 * remote.c (struct remote): New field disconnected_tracing.
7912 (remote_disconnected_tracing_feature): New function.
7913 (remote_protocol_features): Add DisconnectedTracing.
7914 (struct uploaded_tp): New struct.
7915 (uploaded_tps): New global.
7916 (get_uploaded_tp): New function.
7917 (find_matching_tracepoint): New function.
7918 (remote_get_tracing_state): New function.
7919 (remote_start_remote): Call it.
7920 * tracepoint.c (disconnected_tracing): New global.
7921 (trace_start_command): Initialize number_on_target.
7922 (stop_tracing): New function, split out from...
7923 (trace_stop_command): Call stop_tracing.
7924 (get_trace_status): New function, split out from...
7925 (trace_status_command): Call get_trace_status, add info on
7926 disconnection behavior.
7927 (disconnect_or_stop_tracing): New function.
7928 (finish_tfind_command): Translate from number on target.
7929 (trace_find_tracepoint_command): Translate to number on target.
7930 (send_disconnected_tracing_value): New function.
7931 (set_disconnected_tracing): New function.
7932 (_initialize_tracepoint): Add disconnected-tracing variable.
7933 * NEWS: Mention disconnected tracing.
7934
7935 2010-01-06 Tristan Gingold <gingold@adacore.com>
7936
7937 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7938 parameter to main_objfile. Iterate on all separate debug objfiles.
7939 * symfile.h (symbol_file_add_separate)
7940 (find_separate_debug_file_by_debuglink): Remove parameter names.
7941 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7942 (reread_symbols): Use free_objfile_separate_debug.
7943 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7944 Adjust comment.
7945 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7946 (free_objfile_separate_debug): New prototypes.
7947 * objfiles.c (objfile_separate_debug_iterate): New function.
7948 (add_separate_debug_objfile, free_objfile_separate_debug): New
7949 functions.
7950 (free_objfile): Use free_objfile_separate_debug. Adjust for
7951 multiple separate debug objfile.
7952 (objfile_has_symbols): Adjust comment. Iterate on all separate
7953 debug objfiles.
7954 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7955 debug objfile.
7956 (lookup_minimal_symbol_text): Ditto.
7957 (lookup_minimal_symbol_by_pc_name): Ditto.
7958 (lookup_minimal_symbol_solib_trampoline): Ditto.
7959 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7960 debug objfiles.
7961
7962 2010-01-05 Stan Shebs <stan@codesourcery.com>
7963
7964 Add fast tracepoints.
7965 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7966 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7967 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7968 * breakpoint.c (tracepoint_type): New function.
7969 (ALL_TRACEPOINTS): Use it.
7970 (should_be_inserted): Ditto.
7971 (bpstat_check_location): Ditto.
7972 (print_one_breakpoint_location): Ditto.
7973 (user_settable_breakpoint): Ditto.
7974 (set_breakpoint_location_function): Ditto.
7975 (disable_breakpoints_in_shlibs): Ditto.
7976 (delete_trace_command): Ditto.
7977 (print_it_typical): Add bp_fast_tracepoint case.
7978 (bpstat_what): Ditto.
7979 (print_one_breakpoint_location): Ditto.
7980 (allocate_bp_location): Ditto.
7981 (mention): Ditto.
7982 (breakpoint_re_set_one): Ditto.
7983 (disable_command): Ditto.
7984 (enable_command): Ditto.
7985 (check_fast_tracepoint_sals): New function.
7986 (break_command_really): Call it.
7987 (ftrace_command): New function.
7988 (_initialize_breakpoint): Add ftrace command.
7989 * gdbarch.sh (fast_tracepoint_valid_at): New.
7990 * gdbarch.h, gdbarch.c: Regenerate.
7991 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7992 (i386_gdbarch_init): Use it.
7993 * remote.c (struct remote_state): New field fast_tracepoints.
7994 (PACKET_FastTracepoints): New packet config type.
7995 (remote_fast_tracepoint_feature): New function.
7996 (remote_protocol_features): Add FastTracepoints.
7997 (remote_supports_fast_tracepoints): New function.
7998 (_initialize_remote): Add FastTracepoints.
7999 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
8000 * NEWS: Mention fast tracepoints.
8001
8002 2010-01-06 Joel Brobecker <brobecker@adacore.com>
8003
8004 * gdb-gdb.py: New file.
8005
8006 2010-01-05 Michael Snyder <msnyder@vmware.com>
8007
8008 * infrun.c (handle_inferior_event): Fix typo in comment.
8009
8010 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8011
8012 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
8013
8014 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8015
8016 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
8017 and s390x-linux64.
8018 (s390-linux32-expedite): Define.
8019 (s390-linux64-expedite): Define.
8020 (s390x-linux64-expedite): Define.
8021 * features/s390-acr.xml: New file.
8022 * features/s390-fpr.xml: New file.
8023 * features/s390-core32.xml: New file.
8024 * features/s390-core64.xml: New file.
8025 * features/s390x-core64.xml: New file.
8026 * features/s390-linux32.xml: New file.
8027 * features/s390-linux64.xml: New file.
8028 * features/s390x-linux64.xml: New file.
8029 * features/s390-linux32.c: New generated file.
8030 * features/s390-linux64.c: New generated file.
8031 * features/s390x-linux64.c: New generated file.
8032
8033 * regformats/s390-linux32.dat: New generated file.
8034 * regformats/s390-linux64.dat: New generated file.
8035 * regformats/s390x-linux64.dat: New generated file.
8036 * regformats/reg-s390.dat: Remove.
8037 * regformats/reg-s390x.dat: Remove.
8038
8039 * s390-nat.c: Include "auxv.h" and <elf.h>.
8040 (HWCAP_S390_HIGH_GPRS): Define if undefined.
8041 (s390_target_wordsize): New function.
8042 (s390_auxv_parse): Likewise.
8043 (s390_get_hwcap): Likewise.
8044 (s390_read_description): Likewise.
8045 (_initialize_s390_nat): Install s390_auxv_parse and
8046 s390_read_description.
8047
8048 * s390-tdep.c: Include "features/s390-linux32.c",
8049 "features/s390-linux64.c", and "features/s390x-linux64.c".
8050 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
8051 (s390_register_call_saved): New function.
8052 (s390_register_name): Remove.
8053 (s390_register_type): Remove.
8054 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
8055 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
8056 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
8057 (s390_pseudo_register_name): New function.
8058 (s390_pseudo_register_type): New function.
8059 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
8060 Handle full GPR pesudos and varying pseudo register numbers.
8061 (s390_pseudo_register_write): Likewise
8062 (s390x_pseudo_register_read): Remove.
8063 (s390x_pseudo_register_write): Likewise.
8064 (s390_register_group): Remove.
8065 (s390_pseudo_register_group): New function.
8066 (s390_regmap_gregset): Add GPR upper halves.
8067 (s390x_regmap_gregset): Likewise.
8068 (s390_regmap_fpregset): Likewise.
8069 (s390_regmap_upper): New global variable.
8070 (s390_upper_regset): New global variable.
8071 (s390_upper_regset_sections): New global variable.
8072 (s390_regset_from_core_section): Handle GPR upper halves.
8073 (s390_core_read_description): New function.
8074 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
8075 register information. Handle varying pseudo register numbers.
8076 (s390_backchain_frame_unwind_cache): Likewise.
8077 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
8078 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
8079 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
8080 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
8081 Handle varying pseudo register numbers.
8082 (s390_unwind_pc): Handle varying pseudo register numbers.
8083 (s390_dwarf2_prev_register): New function.
8084 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
8085 register information. Handle varying pseudo register numbers.
8086 Install s390_dwarf2_prev_register to unwind full GPRs.
8087 (s390_gdbarch_init): Handle target descriptions. Assign varying
8088 pseudo register numbers. Install s390_adjust_frame_regnum.
8089 (_initialize_s390_tdep): Initialize target descriptions.
8090
8091 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
8092 (S390_NUM_REGS): Redefine to include upper half registers.
8093 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
8094 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
8095 (tdesc_s390_linux32): Add declaration.
8096 (tdesc_s390_linux64): Likewise.
8097 (tdesc_s390x_linux64): Likewise.
8098
8099 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8100
8101 * regset.h (struct core_regset_section): Add HUMAN_NAME.
8102 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
8103 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
8104 (ppc_linux_vmx_regset_sections): Likewise.
8105 (ppc_linux_fp_regset_sections): Likewise.
8106
8107 * corelow.c (get_core_register_section): Constify arguments.
8108 (get_core_registers): Use gdbarch_core_regset_sections instead
8109 of hard-coded platform-specific register section names.
8110
8111 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8112
8113 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
8114 a register, assume the least-significant part is used.
8115 (write_pieced_value): Likewise.
8116
8117 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8118
8119 * printcmd.c: Include "arch-utils.h".
8120 (do_one_display): Re-parse expression if current architecture changed.
8121
8122 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8123 Joel Brobecker <brobecker@adacore.com>
8124
8125 * gdbtypes.c (check_typedef): New comment on type length.
8126 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8127 comment on type length.
8128 (value_primitive_field): Keep the original TYPE value, new comment.
8129
8130 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8131
8132 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8133 p_start. Change != comparisons to > and < comparisons.
8134
8135 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * cli/cli-script.c (process_next_line): Check P2 overrun.
8138
8139 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8140
8141 Update the copyright hearder to add year 2010 for most GDB files.
8142
8143 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8144
8145 Fix build failure in inf-ptrace.c.
8146 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8147
8148 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8149
8150 * top.c (print_gdb_version): Update copyright year.
8151
8152 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
8153
8154 Fix break *FUN'address thread NUM.
8155 * ada-lex.l (task): Expand rule to also match the thread keyword.
8156
8157 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8158
8159 Fix break *FUN'address task NUM.
8160 * ada-lex.l (task): New rule.
8161 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8162 been built before using it.
8163
8164 For older changes see ChangeLog-2009.
8165 \f
8166 Local Variables:
8167 mode: change-log
8168 left-margin: 8
8169 fill-column: 74
8170 version-control: never
8171 coding: utf-8
8172 End:
This page took 0.203867 seconds and 4 git commands to generate.