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