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