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