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