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