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