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