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