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