* tui/tui-hooks.c (tui_inferior_exit): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d69e6a33
SC
12012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
2
3 * tui/tui-hooks.c (tui_inferior_exit): New function.
4 (tui_detach_hook): Remove.
5 (tui_install_hooks): Install the inferior exit observer.
6 (tui_remove_hooks): Remove it.
7
1e96de83
YQ
82012-11-08 Yao Qi <yao@codesourcery.com>
9
10 PR gdb/14777.
11 * source.c (_initialize_source): Call add_com_alias to abbreviate
12 'forward-search' as 'fo'.
13
0baeab03
PA
142012-11-07 Pedro Alves <palves@redhat.com>
15
16 * arm-tdep.c: Make defs.h be the first include.
17 * coff-pe-read.c: Ditto.
18 * gnu-nat.c: Ditto.
19 * go32-nat.c: Ditto.
20 * i386-nat.c: Ditto.
21 * ppcnbsd-nat.c: Ditto.
22 * ada-varobj.h: Don't include defs.h.
23 * i386-darwin-tdep.h: Ditto.
24 * i386-nat.h: Ditto.
25
892a8570
PA
262012-11-07 Pedro Alves <palves@redhat.com>
27
28 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
29 Committee.
30
719502e9
PM
312012-11-07 Pierre Muller <muller@sourceware.org>
32
33 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
34 File already uses "gdb_dirent.h" header.
35
ed86b350
YQ
362012-11-07 Yao Qi <yao@codesourcery.com>
37
38 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
39 tracepoint_count'.
40
9a4f1e4f
TT
412012-11-06 Tom Tromey <tromey@redhat.com>
42
43 * target.h (inferior_has_forked, inferior_has_vforked)
44 (inferior_has_execd, inferior_has_called_syscall): Remove
45 declarations.
46
0316657e
PM
472012-11-06 Pierre Muller <muller@sourceware.org>
48
49 * remote.c (remote_insert_hw_breakpoint): ARI fix,
50 add missing internalization markup.
51
f6592439
PA
522012-11-06 Pedro Alves <palves@redhat.com>
53
54 PR gdb/14810
55
56 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
57
01f2564a
PM
582012-11-06 Pierre Muller <muller@sourceware.org>
59
60 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
61 is not executable.
62
f37c4431
JB
632012-11-05 Joel Brobecker <brobecker@adacore.com>
64
65 * gnulib/update-gnulib.sh: New script.
66
550889c3
JB
672012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
68
69 * MAINTAINERS: Update my email address.
70
954b50b3
TT
712012-11-05 Tom Tromey <tromey@redhat.com>
72
73 * frame.c (put_frame_register): Don't use temporary buffer.
74
68c9da30
PA
752012-11-05 Pedro Alves <palves@redhat.com>
76
77 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
78 child. Clear 'pending_detach'.
79 * infrun.c (handle_vfork_child_exec_or_exit): Clear
80 'pending_detach' in the vfork parent.
81
80626a55
DE
822012-11-05 Doug Evans <dje@google.com>
83
84 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
85 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
86 * dwarf2read.c: #include "elf-bfd.h".
87 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
88 (dwop_section_names): Renamed from dwo_section names. All uses
89 updated. Add entries for .debug_cu_index, .debug_tu_index.
90 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
91 All uses updated.
92 (struct dwp_sections): New type.
93 (struct virtual_dwo_sections): New type.
94 (struct dwp_hash_table): New type.
95 (struct dwp_file): New type.
96 (init_cutu_and_read_dies): Ensure DWO info/types section has been
97 read in. Handle DWOs coming from DWP files.
98 (lookup_dwo_file_slot): New function.
99 (dwarf2_locate_dwo_sections): Move definition closer to use.
100 (create_dwo_debug_info_hash_table_reader): Renamed from
101 create_debug_info_hash_table_reader. All callers updated.
102 (create_dwo_debug_info_hash_table): Renamed from
103 create_debug_info_hash_table. All callers updated.
104 (create_dwp_hash_table): New function.
105 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
106 (lookup_dwo_in_dwp): New function.
107 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
108 is_dwp. All callers updated.
109 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
110 (open_and_init_dwo_file): Renamed from init_dwo_file.
111 All callers updated.
112 (lookup_dwo_file): Delete.
113 (dwarf2_locate_dwp_sections): New function.
114 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
115 (allocate_dwp_loaded_cutus_table): New function.
116 (open_and_init_dwp_file): New function.
117 (lookup_dwo_cutu): New function.
118 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
119
6f6484cd
YQ
1202012-11-03 Yao Qi <yao@codesourcery.com>
121
122 Fix PR gdb/14617.
123 * breakpoint.c (trace_pass_set_count): Call
124 observer_notify_breakpoint_modified instead of
125 observer_notify_tracepoint_modified.
126 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
127
b45627a0
TT
1282012-11-02 Tom Tromey <tromey@redhat.com>
129
130 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
131 argument to complete_on_enum.
132
d4fb63e1
TT
1332012-11-02 Tom Tromey <tromey@redhat.com>
134
135 * configure: Rebuild.
136 * configure.ac (build_warnings): Add -Wempty-body.
137 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
138 * remote.c (handle_notification): Use braces for empty 'else' body.
139 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
140 'else' body.
141 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
142 'else' body.
143 * solib-som.c (som_relocate_section_addresses): Use braces
144 for empty 'else' body.
145 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
146 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
147
f50f4e56
PA
1482012-11-02 Pedro Alves <palves@redhat.com>
149
150 PR gdb/14766
151
152 * infrun.c (handle_inferior_event)
153 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
154 null_ptid before handling a vfork child exec or exit. Switch to
155 the event ptid afterwards.
156
f0559fff
YQ
1572012-11-02 Yao Qi <yao@codesourcery.com>
158
159 * std-operator.def: Remove OP_LABELED.
160 * eval.c: Remove the declaration of 'get_label'.
161 (get_label): Remove.
162 (evaluate_struct_tuple): Remove code handling OP_LABELED.
163 Update comment.
164 Remove local variable 'variantno' and related code.
165 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
166 with 'fieldno'.
167 * expprint.c (print_subexp_standard): Likewise.
168 (dump_subexp_body_standard): Likewise.
169 * parse.c (operator_length_standard): Likewise.
170
e5496e3e
PM
1712012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
172
173 Incorporate ARI web page generator into GDB sources.
174 * contrib/ari/create-web-ari-in-src.sh: New file.
175 * contrib/ari/gdb_ari.sh: New file.
176 * contrib/ari/gdb_find.sh: New file.
177 * contrib/ari/update-web-ari.sh: New file.
178
c66fb220
TT
1792012-10-31 Tom Tromey <tromey@redhat.com>
180
181 * gdbarch.c: Rebuild.
182 * gdbarch.sh: Remove references to gdbarch_swap.
183 * corelow.c (core_open): Remove obsolete comment.
184
2f27adfe
AB
1852012-10-31 Andrew Burgess <aburgess@broadcom.com>
186
187 PR cli/14772
188 * c-typeprint.c (c_print_type): Don't print a space for vector
189 types, this is handled within the suffix.
190 (c_type_print_varspec_suffix): Add a space to vector suffix.
191
144db827
PA
1922012-10-26 Pedro Alves <palves@redhat.com>
193
194 * amd64-tdep.c (amd64_relocate_instruction): Use
195 store_unsigned_integer instead of memcpy.
196 * i386-tdep.c (i386_relocate_instruction): Ditto.
197
940c3c06
PA
1982012-10-26 Pedro Alves <palves@redhat.com>
199
200 * infrun.c (handle_inferior_event): Merge handling of
201 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
202 switch case.
203
47b19065
PA
2042012-10-26 Pedro Alves <palves@redhat.com>
205
206 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
207 Remove comment.
208
87d2d2a4
PA
2092012-10-26 Pedro Alves <palves@redhat.com>
210
211 * target.c (target_waitstatus_to_string): Handle
212 TARGET_WAITKIND_VFORK_DONE.
213
fed708ed
PA
2142012-10-26 Pedro Alves <palves@redhat.com>
215
216 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
217 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
218
2590b645
JB
2192012-10-24 Tristan Gingold <gingold@adacore.com>
220
221 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
222 Add comments.
223
bed0c243
JB
2242012-10-24 Joel Brobecker <brobecker@adacore.com>
225
226 * ravenscar-thread.c (ravenscar_wait): Only update the list
227 of threads and inferior_ptid if the inferior is still alive.
228
f69c91ad
JB
2292012-10-24 Joel Brobecker <brobecker@adacore.com>
230
231 * ada-lang.c (is_known_support_routine): Use lbasename when
232 matching the symtab's filename against
233 known_runtime_file_name_patterns.
234
d99dcf51
JB
2352012-10-24 Joel Brobecker <brobecker@adacore.com>
236
237 * ada-lang.c (ada_same_array_size_p): New function.
238 (ada_promote_array_of_integrals): New function.
239 (coerce_for_assign): Add handling of arrays where the elements
240 are integrals of a smaller size than the size of the target
241 array element type.
242
32560274
JB
2432012-10-24 Joel Brobecker <brobecker@adacore.com>
244
245 * doublest.c (convert_doublest_to_floatformat): Fix comparison
246 against maximum exponent value.
247
5a04cc98
JB
2482012-10-24 Joel Brobecker <brobecker@adacore.com>
249
250 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
251 "unwind-seh.c".
252
5ded5331
JB
2532012-10-24 Joel Brobecker <brobecker@adacore.com>
254
255 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
256 strip typedef layer when computing the fixed type's field type,
257 only when computing its size.
258
2445fd7b
MK
2592012-10-24 Mark Kettenis <kettenis@gnu.org>
260
261 PR gdb/12783
262 * i386-tdep.c (i386_return_value): Handle complex double and long
263 double.
264
8f205f9c
JB
2652012-10-24 Joel Brobecker <brobecker@adacore.com>
266
267 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
268 New local variable args_len.
269 Quote the name of the executable when computing the command line.
270
7f7930dd
MK
2712012-10-23 Mark Kettenis <kettenis@gnu.org>
272
273 PR gdb/12796
274 PR gdb/12798
275 PR gdb/12800
276 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
277 AMD64_FTAG_REGNUM.
278 * amd64-tdep.c (amd64_classify): Classify complex types.
279 (amd64_return_value): Handle the COMPLEX_X87 class.
280
38a69d0a
JB
2812012-10-23 Joel Brobecker <brobecker@adacore.com>
282
283 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
284 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
285
83ab93c6
JB
2862012-10-23 Joel Brobecker <brobecker@adacore.com>
287
288 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
289 function.
290 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
291 to amd64_windows_auto_wide_charset.
292
f6fbab7d
YQ
2932012-10-23 Yao Qi <yao@codesourcery.com>
294
295 * event-top.c (mark_async_signal_handler_wrapper): Remove.
296 * event-top.h: Remove its declaration.
297 (async_request_quit): Call mark_async_signal_handler instead of
298 mark_async_signal_handler_wrapper.
299 (async_do_nothing, async_disconnect): Likewise.
300 (async_stop_sig): Likewise.
301 * remote.c (handle_remote_sigint): Likewise.
302 (handle_remote_sigint_twice): Likewise.
303
05fa9251
YQ
3042012-10-23 Yao Qi <yao@codesourcery.com>
305
306 * event-top.c (sigint_token, sighup_token): Replace 'void *'
307 with 'static struct async_signal_handler *'.
308 (sighup_token, sigquit_token, sigstp_token): Likewise.
309
08af7a40
AA
3102012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
311
312 * gdbarch.sh (function_list): Use 'pstring' when printing
313 a variable which could return NULL.
314 * gdbarch.c: Regenerate.
315
beb4b03c
JB
3162012-10-10 Joel Brobecker <brobecker@adacore.com>
317 Tom Tromey <tromey@redhat.com>
318
319 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
320 inneffective if condition by gdb assertion. Add function
321 description comment.
322
a5b12627
JB
3232012-10-19 Joel Brobecker <brobecker@adacore.com>
324
325 * parser-defs.h (struct exp_descriptor): Document constraint
326 on return value for "op_name" callbacks.
327
0b0865da
TT
3282012-10-18 Tom Tromey <tromey@redhat.com>
329
330 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
331 * symtab.c (iterate_over_some_symtabs): Constify.
332 * source.h (symtab_to_fullname): Return 'const char *'.
333 * source.c (symtab_to_fullname): Return 'const char *'.
334 * python/py-symtab.c (stpy_fullname): Constify.
335 * cli/cli-cmds.c (edit_command): Constify.
336 * breakpoint.c (print_breakpoint_location)
337 (update_static_tracepoint): Constify.
338
94b0e70d
TT
3392012-10-18 Tom Tromey <tromey@redhat.com>
340
341 * breakpoint.c (compare_breakpoints): Fix comparison.
342
fff10684
TT
3432012-10-18 Tom Tromey <tromey@redhat.com>
344
345 * valprint.c (generic_emit_char, generic_printstr): Pass size of
346 gdb_wchar_t to convert_between_encodings.
347
8de0566d
YQ
3482012-10-17 Yao Qi <yao@codesourcery.com>
349
350 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
351 more parameter 'inferior'.
352 * corefile.c (write_memory_with_notification): Caller update.
353
354 * mi/mi-cmd-var.c: Include "mi-main.h".
355 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
356 to 1 and restore it later.
357 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
358 and "data-write-memory-bytes.
359 * mi/mi-interp.c: Include objfiles.h.
360 (mi_interpreter_init): Call observer_attach_memory_changed.
361 (mi_memory_changed): New.
362 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
363 New field.
364
365 * NEWS: Mention new MI notification "memory-changed".
366
6235cdd1
JK
3672012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
368
369 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
370
07540c15
DE
3712012-10-15 Doug Evans <dje@google.com>
372
373 New option -nh: inhibit loading of ~/.gdbinit.
374 * NEWS: Mention -nh.
375 * main.c (captured_main): Recognize and process -nh.
376 (print_gdb_help): Mention -nh.
377 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
378
eab09350
L
3792012-10-15 H.J. Lu <hongjiu.lu@intel.com>
380
381 PR backtrace/14646
382 PR gdb/14647
383 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
384 pc_regnum_from_eax.
385 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
386 nor pc_regnum_from_eax.
387 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
388 nor pc_regnum_from_eax.
389
9e3a7d65
JK
3902012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 Fix entry values resolving in inlined frames.
393 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
394 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
395 entries of FRAME.
396
c83393b9
JB
3972012-10-15 Joel Brobecker <brobecker@adacore.com>
398
399 * configure.ac: Build with -DMS_WIN64 if building with Python
400 enabled using GCC on amd64-windows.
401 * configure: Regenerate.
402
801e4185
TT
4032012-10-15 Tom Tromey <tromey@redhat.com>
404
405 PR python/14635:
406 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
407 to Py_None.
408
74f910c8
TT
4092012-10-15 Tom Tromey <tromey@redhat.com>
410
411 PR python/14634:
412 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
413
2a7c8fd5
AB
4142012-10-11 Andrew Burgess <aburgess@broadcom.com>
415
416 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
417 reset thread numbering back to 1.
418
7c09e5a0
DE
4192012-10-11 Doug Evans <dje@google.com>
420
421 PR breakpoints/14643.
422 * linespec.c (struct ls_parser): New member keyword_ok.
423 (linespec_lexer_lex_string): Add comment.
424 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
425 for one.
426 (parse_linespec): Set keyword_ok.
427
a1855c1d
DE
4282012-10-10 Doug Evans <dje@google.com>
429
844226d6
DE
430 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
431 "0x" prefix on address in log message.
432
a1855c1d
DE
433 * dwarf2read.c (read_1_byte): Add const to buf parameter.
434 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
435 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
436 (lookup_dwo_file): Add const to dwo_name parameter.
437 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
438
2e24f4aa
JK
4392012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
440
441 Fix crash during stepping on ppc32.
442 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
443 SYM.
444
aa14df25
DE
4452012-10-03 Doug Evans <dje@google.com>
446
447 PR symtab/14601
448 * buildsym.c (buildsym_init): Reset using_directives to NULL.
449
3d468296
AB
4502012-10-02 Andrew Burgess <aburgess@broadcom.com>
451
452 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
453 output and use uint32_t not long to ensure 4 byte size.
454
8f0ee2eb
JB
4552012-10-02 Joel Brobecker <brobecker@adacore.com>
456
457 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
458 unref'ed it.
459
b3dc46ff
AB
4602012-10-01 Andrew Burgess <aburgess@broadcom.com>
461
462 * target.c (simple_search_memory): Include access length in
463 warning message.
464
f712f01f
EBM
4652012-09-28 Nathan Miller <nathanm2@us.ibm.com>
466 Edjunior Machado <emachado@linux.vnet.ibm.com>
467
468 PR gdb/13989
469 * solib.c (solib_find): Prevent GDB from loading native libraries when
470 debugging a cross-target corefile.
471
39181896
PA
4722012-09-28 selven <pcthegreat@gmail.com>
473
474 Make definition match declaration.
475
476 * regcache.c (regcache_register_status): Change return type to
477 enum register_status.
478
4c2786ba
YQ
4792012-09-28 Yao Qi <yao@codesourcery.com>
480
481 * mi/mi-main.c (mi_cmd_data_write_memory): Call
482 write_memory_with_notification instead of write_memory.
483 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
484 instead of target_write_memory.
485
1ae0c35e
YQ
4862012-09-28 Yao Qi <yao@codesourcery.com>
487
488 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
489 when the length of content is not an even number.
490
7977e5d2
TT
4912012-09-27 Tom Tromey <tromey@redhat.com>
492
493 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
494 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
495
807160da
JB
4962012-09-27 Joel Brobecker <brobecker@adacore.com>
497
498 * sol-thread.c (sol_thread_fetch_registers)
499 (sol_thread_store_registers): Delete commented out code.
500
43c75337
JB
5012012-09-27 Joel Brobecker <brobecker@adacore.com>
502
503 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
504 Move these functions to sparc-sol-thread.c.
505 * sparc-sol-thread.c: New file.
506 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
507 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
508 configurations.
509 * configure: Regenerate.
510
d292a972
JB
5112012-09-27 Joel Brobecker <brobecker@adacore.com>
512
513 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
514 Remove commented-out code.
515
8c3da003
JB
5162012-09-27 Joel Brobecker <brobecker@adacore.com>
517
518 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
519 Enable this code for sparc hosts only.
520
f00482b6
JB
5212012-09-27 Joel Brobecker <brobecker@adacore.com>
522
523 * procfs.h (procfs_find_LDT_entry): Add declaration.
524 * sol-thread.c (ps_lgetLDT): Delete local declaration of
525 function procfs_find_LDT_entry.
526
337c776f
JB
5272012-09-27 Joel Brobecker <brobecker@adacore.com>
528
529 * procfs.c (proc_get_LDT_entry): Make static.
530
1a04d88f
JB
5312012-09-27 Joel Brobecker <brobecker@adacore.com>
532
533 * procfs.c (proc_find_memory_regions): Fix declaration.
534
bad43aa5
SP
5352012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
536
537 * amd64-tdep.c (amd64_return_value): Revert previous change
538 that used TYPE_LENGTH directly.
539 * bfin-tdep.c (bfin_extract_return_value): Likewise.
540 (bfin_store_return_value): Likewise.
541 * cris-tdep.c (cris_store_return_value): Likewise.
542 (cris_extract_return_value): Likewise.
543 * h8300-tdep.c (h8300_extract_return_value): Likewise.
544 * hppa-tdep.c (hppa64_return_value): Likewise.
545 * lm32-tdep.c (lm32_store_return_value): Likewise.
546 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
547 * spu-tdep.c (spu_value_from_register): Likewise.
548 * vax-tdep.c (vax_return_value): Likewise.
549
63375b74
SP
5502012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
551
552 * gdbtypes.c (lookup_array_range_type): Expand parameters
553 LOW_BOUND and HIGH_BOUND to LONGEST.
554 (lookup_string_range_type): Likewise.
555 * gdbtypes.h (lookup_array_range_type): Likewise.
556 (lookup_string_range_type): Likewise.
557 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
558 Expand HIGHBOUND to ssize_t.
559 (value_string): Likewise.
560 * value.h (value_cstring): Expand parameter LEN to ssize_t.
561 (value_string): Likewise.
562
19ca11c5
YQ
5632012-09-27 Yao Qi <yao@codesourcery.com>
564
565 PR breakpoints/13898
566 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
567 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
568 per breakpoint type.
569
92107356
PM
5702012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
571
572 * procfs.c: Add gdb_bfd header.
573 * rs6000-nat.c: Likewise.
574 * solib-pa64.c: Likewise.
575 * spu-linux-nat.c: Likewise.
576 * windows-nat.c: Likewise.
577
9742094a
TT
5782012-09-26 Tom Tromey <tromey@redhat.com>
579
580 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
581
0971de02
TT
5822012-09-26 Tom Tromey <tromey@redhat.com>
583
584 * dwarf2read.c (mark_common_block_symbol_computed): New function.
585 (read_common_block): Handle child DIEs with
586 DW_AT_data_member_location.
587 (new_symbol_full): Add special case for common blocks.
588
4357ac6c
TT
5892012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
590 Tom Tromey <tromey@redhat.com>
591
592 * dwarf2read.c (read_common_block): Rewrite.
593 (new_symbol_full): Handle DW_TAG_common_block.
594 * f-lang.c (head_common_list, find_common_for_function):
595 Remove.
596 * f-lang.h (struct common_entry, struct saved_f77_common,
597 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
598 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
599 BLANK_COMMON_NAME_LOCAL): Remove.
600 (struct common_block): New.
601 * f-valprint.c (list_all_visible_commons): Remove.
602 (info_common_command_for_block): New function.
603 (info_common_command): Use it.
604 * stack.c (iterate_over_block_locals): Special case for
605 COMMON_BLOCK_DOMAIN.
606 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
607 constant.
608 (struct general_symbol_info) <value.common_block>: New field.
609 (SYMBOL_VALUE_COMMON_BLOCK): New define.
610
965f07a8
TT
6112012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
612 Tom Tromey <tromey@redhat.com>
613
614 * f-lang.c (allocate_saved_bf_node,
615 allocate_saved_function_node, allocate_saved_f77_common_node,
616 allocate_common_entry_node, tail_common_list, current_common,
617 saved_bf_list, saved_bf_list_end, current_head_bf_list,
618 tmp_bf_ptr, add_common_block, add_common_entry,
619 find_first_common_named, patch_common_entries,
620 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
621 global_remote_debug, get_bf_for_fcn, saved_function_list,
622 saved_function_list_end, clear_function_list, struct saved_fcn,
623 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
624 SAVED_BF, SAVED_BF_PTR): Remove.
625 * f-lang.h (tail_common_list, current_common,
626 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
627 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
628 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
629 real_main_c_value): Remove.
630 * f-valprint.c (there_is_a_visible_common_named): Remove.
631
6f380991
AB
6322012-09-26 Andrew Burgess <aburgess@broadcom.com>
633
634 * breakpoint.c (update_global_location_list): Ignore previous
635 duplicate status of a breakpoint when starting a new scan for
636 duplicate breakpoints.
637
9ead7ae4 6382012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 639 PR breakpoints/14419
2536b51c
YQ
640 * arm-tdep.c (arm_skip_prologue): Extending producer check to
641 support LLVM compiler.
9ead7ae4 642
8f8a23a2
SP
6432012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
644
645 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
646 * bfin-tdep.c (bfin_extract_return_value): Likewise.
647 (bfin_store_return_value): Likewise.
648 * cris-tdep.c (cris_store_return_value): Likewise.
649 (cris_extract_return_value): Likewise.
650 * h8300-tdep.c (h8300_extract_return_value): Likewise.
651 * hppa-tdep.c (hppa64_return_value): Likewise.
652 * lm32-tdep.c (lm32_store_return_value): Likewise.
653 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
654 * spu-tdep.c (spu_value_from_register): Likewise.
655 * vax-tdep.c (vax_return_value): Likewise.
656
d7019589
SP
6572012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
658
659 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
660 parameter LEN to ssize_t.
661
744a8059
SP
6622012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
663
664 * ada-valprint.c (ada_val_print_1): Eliminate single-use
665 variable LEN.
666 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
667 directly.
668 (alpha_store_return_value): Likewise.
669 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
670 (amd64_push_arguments): Likewise.
671 * ax-gdb.c (gen_trace_static_fields): Likewise.
672 (gen_traced_pop): Likewise.
673 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
674 * breakpoint.c (update_watchpoint): Likewise.
675 * findcmd.c (parse_find_args): Use local variable for type
676 instead of length.
677 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
678 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
679 (h8300_store_return_value): Likewise.
680 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
681 Use i386_darwin_arg_type_alignment directly.
682 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
683 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
684 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
685 (m68hc11_extract_return_value): Likewise.
686 * mep-tdep.c (mep_push_dummy_call): Likewise.
687 * printcmd.c (float_type_from_length): Likewise.
688 * s390-tdep.c (s390_value_from_register): Likewise.
689 * stack.c (read_frame_arg): Likewise.
690 * tracepoint.c (encode_actions_1): Likewise.
691 * valops.c (value_fetch_lazy): Use local variable for type
692 instead of length. Use TYPE_LENGTH directly.
693 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
694
a4b411d6
JB
6952012-09-25 Joel Brobecker <brobecker@adacore.com>
696
697 * symtab.c (skip_prologue_sal): Fix typo in comment.
698
11dba07a
JB
6992012-09-25 Joel Brobecker <brobecker@adacore.com>
700
701 * linespec.c (create_sals_line_offset): Fix typo in comment.
702
318102b9
SP
7032012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
704
705 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
706 use plongest to print the array size.
707
b4aa388a
SP
7082012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
709
710 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
711 * p-valprint.c (pascal_type_print_base): Likewise.
712
84cebc4a
YQ
7132012-09-22 Yao Qi <yao@codesourcery.com>
714
715 * remote.c (remote_get_trace_status): Remove setting default
716 values of fields of 'ts'.
717
04e7407c
JK
7182012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
719
720 Fix internal error on canonicalization of clang types.
721 * cp-name-parser.y (operator): New comment at make_operator call for
722 new, delete, new[] and delete[].
723 (exp): Use "sizeof ". Add new comment at make_operator call.
724
9bf4bce9
JK
7252012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 Fix disassemble without parameters in tailcall frame.
728 * cli/cli-cmds.c (disassemble_current_function): Use
729 get_frame_address_in_block.
730
1c5b7826
TT
7312012-09-21 Tom Tromey <tromey@redhat.com>
732
733 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
734 TYPE_CODE_UNION>: Unify, removing a goto.
735
62a49610
TT
7362012-09-21 Tom Tromey <tromey@redhat.com>
737
738 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
739
2603f7ee
AB
7402012-09-21 Andrew Burgess <aburgess@broadcom.com>
741
742 * findvar.c (read_frame_register_value): Mark the result value as
743 optimized out if any of the input registers have been optimized out.
744
810849a3
AS
7452012-09-21 Andreas Schwab <schwab@linux-m68k.org>
746
747 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
748
0953dec1
SP
7492012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
750
751 * eval.c (evaluate_subexp_standard): Eliminate single-use
752 variable LOWER.
753
82a90ccf
YQ
7542012-09-21 Yao Qi <yao@codesourcery.com>
755
756 * mi/mi-interp.c: Declare mi_record_changed.
757 (mi_interpreter_init): Call observer_attach_record_changed.
758 (mi_record_changed): New.
759 * record.c (record_open): Call observer_notify_record_changed.
760 (cmd_record_stop): Call observer_notify_record_changed.
761 * NEWS: Mention it.
762
d7de8e3c
TT
7632012-09-20 Tom Tromey <tromey@redhat.com>
764
765 * NEWS: Update.
766 * python/python.c (finalize_python): New function.
767 (_initialize_python): Make a final cleanup.
768
43c7c83d
DE
7692012-09-19 Doug Evans <dje@google.com>
770
771 * buildsym.h (param_symbols): Delete, unused.
772 (context_stack): Delete member "params", unused.
773 * buildsym.c (push_context): Update.
774 * dwarf2read.c (read_func_scope): Update.
775
aa9259cc
TS
7762012-09-19 Thomas Schwinge <thomas@codesourcery.com>
777
a6521d9a
TS
778 * sh-tdep.c (sh_register_convert_to_virtual)
779 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
780 all callers. Just do a memcpy if not the little-endian case.
781
f92589cb
TS
782 * h8300-tdep.c (h8300_gdbarch_init): Invoke
783 set_gdbarch_double_format and set_gdbarch_long_double_format.
784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
785 set_gdbarch_double_format.
786 * sh-tdep.c (sh_gdbarch_init): Likewise.
787
aa9259cc
TS
788 * NEWS: Document the removal of SH's 'regs' command.
789 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
790 command.
791
c1d780c2
SDJ
7922012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
793
794 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
795 `jump'.
796
4ae24af0
JB
7972012-09-18 Joel Brobecker <brobecker@adacore.com>
798
799 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
800 language when iterating over symbols.
801
bb25a15c
YQ
8022012-09-18 Yao Qi <yao@codesourcery.com>
803
804 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
805 (mi_interpreter_init): Call observer_attach_tsv_created and
806 observer_attach_tsv_deleted.
807 (mi_tsv_created, mi_tsv_deleted): New.
808 * tracepoint.c (delete_trace_state_variable): Call
809 observer_notify_tsv_deleted.
810 (trace_variable_command): Call observer_notify_tsv_created.
811 (delete_trace_variable_command): Call
812 observer_notify_tsv_deleted.
813 (create_tsv_from_upload): Call observer_notify_tsv_created.
814 * NEWS: Mention it.
815
201b4506
YQ
8162012-09-18 Yao Qi <yao@codesourcery.com>
817
818 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
819 if traceframe changed.
820 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
821 "trace-find".
822 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
823 (mi_interpreter_init): Hook mi_traceframe_changed to observer
824 'traceframe_changed'.
825 (mi_traceframe_changed): New.
826 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
827 New field.
828 * NEWS: Mention the new MI notification.
829
eaeb12db
MW
8302012-09-17 Mike Wrighton <wrighton@codesourcery.com>
831
832 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
833
6e3c039e
JK
8342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
837 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
838 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
839 Extend code also for PaX support. Convert all gdb_assert to warning
840 calls.
841
9a950c7c
JK
8422012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
843
844 Implement auto-load user conveniences suggested by Doug Evans.
845 * auto-load.c: Include top.h.
846 (file_is_auto_load_safe): New variable advice_printed. Print advice.
847 (_initialize_auto_load): New variable scripts_directory_help. Mention
848 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
849 scripts-directory. Document in online help one can use also files for
850 set auto-load safe-path.
851 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
852 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
853
deec9a9d
SP
8542012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
855
856 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
857 of LEN.
858
354ecfd5
SP
8592012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
860
861 * m2-valprint.c (m2_print_array_contents): Eliminate variable
862 ELTLEN and use TYPE_LENGTH directly.
863 (m2_val_print): Likewise.
864 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
865 variable LEN and use TYPE_LENGTH directly.
866 (m68k_svr4_store_return_value): Likewise.
867 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
868 ARGLEN and use TYPE_LENGTH directly.
869 (mips_o64_push_dummy_call): Likewise.
870 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
871 variable LENGTH and use TYPE_LENGTH directly.
872 (s390_function_arg_float): Likewise.
873 (s390_function_arg_integer): Likewise.
874 (s390_push_dummy_call): Likewise.
875 (s390_return_value_convention): Likewise.
876 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
877 TYPE_LENGTH directly.
878
6fc1c773
YQ
8792012-09-17 Yao Qi <yao@codesourcery.com>
880
881 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
882 Update comment to add_setshow_integer_cmd.
883 * cli/cli-setshow.c (do_set_command): Handle case
884 'var_zuinteger_unlimited'.
885 (do_show_command): Likewise.
886 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
887 for command 'remotetimeout'.
888 * command.h (enum var_types): New zuinteger_unlimited. Update comment
889 to var_integer.
890 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
891 for command 'set listsize'.
892
6acef6cd
SP
8932012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
894
895 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
896 variable LEN.
897
1ab3b62c
JK
8982012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 PR 14119
901 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
902 (frame_pop): Drop also TAILCALL_FRAME frames.
903 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
904
acf9414f
JK
9052012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
906 Pedro Alves <palves@redhat.com>
907
908 PR 14548
909 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
910 function start if we are already at function start. Both for
911 reverse-next and for reverse-step into function without line number
912 info.
913
193facb3
JK
9142012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 Code cleanup - rename 'inline' depth to 'artificial' depth.
917 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
918 frame_id_artificial_p, extend the comment.
919 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
920 * frame.c (fprint_frame_id): Rename at a user, change debug output
921 text to "artificial=".
922 (skip_inlined_frames): Rename to ...
923 (skip_artificial_frames): ... here. Extend the comment.
924 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
925 (frame_id_inlined_p): Rename to ...
926 (frame_id_artificial_p): ... here. Rename at a user.
927 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
928 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
929 at a user.
930 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
931 Extend the comment.
932 (frame_id_inlined_p): Rename to ...
933 (frame_id_artificial_p): ... here.
934 * inline-frame.c (inline_frame_this_id): Rename at a user.
935
42056501
AB
9362012-09-14 Andrew Burgess <aburgess@broadcom.com>
937
938 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
939 vector variables using vector_size syntax rather than array
940 syntax.
941
84c47588
SP
9422012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
943
944 * valarith.c (value_concat): Replace unsafe ALLOCA with
945 XMALLOC/XFREE.
946
f4045bcb
PA
9472012-09-14 Pedro Alves <palves@redhat.com>
948
949 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
950
63b46266
YPK
9512012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
952
953 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
954 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
955 data-directory as appropriate.
956
ddd7a8e7
SP
9572012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
958
959 * printcmd.c (ui_printf): Eliminate single-use variable
960 PARAM_LEN.
961
d649a38e
YQ
9622012-09-14 Yao Qi <yao@codesourcery.com>
963 Pedro Alves <palves@redhat.com>
964
965 * valops.c (value_assign): Move observer_notify_target_changed
966 below to replace reinit_frame_cache.
967
b9516fa1
YPK
9682012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
969
970 Refactor Python "gdb" module into a proper Python package, by
971 introducing a new "_gdb" module for code implemented in C, and
972 using reload/__import__ instead of exec.
973 * python/lib/gdb/__init__.py: Import * from _gdb.
974 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
975 prompt_hook, sys.argv): Moved from finish_python_initialization.
976 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
977 (packages, auto_load_packages): New list and function replacing
978 module_dict and auto-loading code, using __file__ instead of
979 gdb.PYTHONDIR and reload/__import__ instead of exec.
980 (GdbSetPythonDirectory): Replacing function of the same name
981 from finish_python_initialization, using reload/__import__ instead
982 of exec, as well as call auto_load_packages.
983 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
984 gdb_python_module and not gdb_module.
985 * python/python-internal.h (gdb_python_module): Declare.
986 * python/python.c (gdb_python_module): New global.
987 (before_prompt_hook): Check gdb_python_module and not gdb_module.
988 (_initialize_python): Rename gdb module to _gdb.
989 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
990 (finish_python_initialization): Move Python code to
991 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
992 __main__.
993
aa0fbdd8
PA
9942012-09-13 Pedro Alves <palves@redhat.com>
995
996 * Makefile.in (COMMON_OBS): Add registry.o.
997 * registry.c: New file.
998 * registry.h (struct registry_container): Declare.
999 (registry_data_callback): New typedef.
1000 (struct registry_data, struct registry_data_registration, struct
1001 registry_data_registry): New type.
1002 (register_data_with_cleanup, registry_alloc_data)
1003 (registry_callback_adaptor, registry_clear_data)
1004 (registry_container_free_data, registry_set_data, registry_data):
1005 Declare.
1006 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1007 the new common structures and functions.
1008 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1009 callback typedefs.
1010
42b5c53d
MW
10112012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1012
1013 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1014 there is an error inserting hardware breakpoints and use the
1015 error message from the target.
1016
1017 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1018 Catch this exception and print the error message contained within. Do not
1019 print the default hardware error breakpoint message in this case.
1020
a1b64ce1
DE
10212012-09-12 Doug Evans <dje@google.com>
1022
1023 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1024 cu == NULL.
1025
83a788b8
DE
10262012-09-11 Doug Evans <dje@google.com>
1027
1028 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1029 .gdb_index symbol attributes if there are none.
1030
d9eaeb59
JB
10312012-09-11 Joel Brobecker <brobecker@adacore.com>
1032
1033 * symtab.h (struct minimal_symbol) [has_size]: New field.
1034 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1035 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1036 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1037 minimal symbols if the symbol's size is actually known.
1038 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1039 of msymbol's size field. Add comment.
1040 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1041 SET_MSYMBOL_SIZE to set the minimal symbol size.
1042
a83e9154
JB
10432012-09-11 Joel Brobecker <brobecker@adacore.com>
1044
1045 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1046 minimal_symbol struct object, rather than setting some of its
1047 fields one by one.
1048
350b1b26
AB
10492012-09-11 Andrew Burgess <aburgess@broadcom.com>
1050
1051 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1052 passed_a_ptr flag when displaying typedef types.
1053
2fa15f23
JB
10542012-09-10 Joel Brobecker <brobecker@adacore.com>
1055
1056 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1057 the optimized_out flag is preserved.
1058
5152ff90
AG
10592012-09-10 Anthony Green <green@moxielogic.com>
1060
1061 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1062 prologue changes in GCC.
1063
5b4f6e25
KS
10642012-09-10 Keith Seitz <keiths@redhat.com>
1065
1066 PR gdb/13483
1067 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1068 (BOOL_CONVERSION_BADNESS): ... this.
1069 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1070 (rank_one_type): Allow all boolean conversions
1071 permitted by the standard.
1072
f1070426
TT
10732012-09-06 Tom Tromey <tromey@redhat.com>
1074
1075 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1076 Don't decref py_objfile.
1077
a8db4212
YPK
10782012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1079
1080 Do not enable -lmcheck by default when Python is enabled with
1081 threading support.
1082 * configure.ac: (python_has_threads) New variable, by testing
1083 if WITH_THREAD is defined in Python.h.
1084 Move --enable-lmcheck after --with-python.
1085 Do not enable -lmcheck by default if python_has_threads=yes.
1086 Warn if --enable-lmcheck and python_has_threads=yes.
1087 * configure: Regenerate.
1088
648beb2b
YQ
10892012-08-31 Yao Qi <yao@codesourcery.com>
1090
1091 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1092 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1093 Update some commands.
1094 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1095 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1096 to 1.
1097
ef07a9f7
YQ
10982012-08-31 Yao Qi <yao@codesourcery.com>
1099
1100 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1101
fda395cf
YPK
11022012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1103
1104 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1105
8efd8e78
DE
11062012-08-29 Doug Evans <dje@google.com>
1107
1108 * main.c (print_gdb_help): Remove reference to
1109 --use-deprecated-index-sections.
1110
883b9c6c
YQ
11112012-08-28 Yao Qi <yao@codesourcery.com>
1112
1113 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1114 (init_cmds): Call add_setshow_uinteger_cmd for command
1115 'max-user-call-depth'.
1116 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1117 declaration of 'max_user_call_depth'.
1118 * frame.c (backtrace_limit): Add 'unsigned'.
1119 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1120 'limit'.
1121 * remote.c (remoteaddresssize): Add 'unsigned'.
1122 (remote_address_masked): Change local var 'address_size' to
1123 'unsigned'.
1124 (_initialize_remote): Call add_setshow_uinteger_cmd for
1125 'remoteaddresssize'.
1126 * top.c (history_size): Add 'unsigned'.
1127 (show_commands): Change local variables to 'unsigned'.
1128 (set_history_size_command): Don't check history_size is negative.
1129 Adjust the condition to call unstifle_history and set history_size
1130 to UNIT_MAX.
1131
1292279a
PA
11322012-08-28 Pedro Alves <palves@redhat.com>
1133
1134 PR gdb/14428
1135
1136 * infcmd.c (default_print_one_register_info): New, factored out
1137 from default_print_registers_info.
1138 (default_print_registers_info): Use it. Mark value unavailable if
1139 necessary.
1140 (registers_info): Print user registers with
1141 default_print_one_register_info.
1142
f629cd75
L
11432010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1144
1145 PR tui/14486
1146 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1147 is not NULL before referencing it.
1148
1c8cdcb1
JK
11492012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1150
1151 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1152 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1153 original PC for it.
1154
e9687799
JK
11552012-08-27 Eli Zaretskii <eliz@gnu.org>
1156 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 * auto-load.c (auto_load_objfile_script): Rename to ...
1159 (auto_load_objfile_script_1): ... here, change variable realname to
1160 parameter realname, document it, add return value, add variable retval.
1161 (auto_load_objfile_script): New function.
1162
7afa1642
JK
11632012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1164
1165 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1166 followed by a whitespace.
1167
dc7650b8
JK
11682012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1169
28e66c70 1170 PR gdb/14494.
dc7650b8
JK
1171 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1172 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1173 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1174 here.
1175
1591a1e8
PA
11762012-08-27 Wei-cheng Wang <cole945@gmail.com>
1177
1178 * memattr.c (create_mem_region): Fix memory region overlapping
1179 checking.
1180
ecfb0d68
SP
11812012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1182
1183 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1184 with xmalloc/cleanup.
1185 * mt-tdep.c (mt_push_dummy_call): Likewise.
1186 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1187 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1188
8c56c1b9
YQ
11892012-08-24 Yao Qi <yao@codesourcery.com>
1190
1191 * jv-exp.y (push_expression_name): Add "." at the end of error
1192 message.
1193
e3480f4a
YPK
11942012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1195
1196 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1197 * python/python.c (_initialize_python): Update documentation.
1198
dfbd5e7b
PA
11992012-08-23 Pedro Alves <palves@redhat.com>
1200
1201 * infrun.c (_initialize_infrun) <handle command help text>:
1202 Mention that multiple signals are supported.
1203
2edda2ff
PA
12042012-08-23 Pedro Alves <palves@redhat.com>
1205
1206 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1207 string.
1208
8d735b87
YQ
12092012-08-23 Yao Qi <yao@codesourcery.com>
1210
1211 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1212 (tfind_1): Don't call registers_changed, set_traceframe_num,
1213 and clear_traceframe_info.
1214 Call set_current_traceframe.
1215 (set_current_traceframe): call set_traceframe_num.
1216
c5d9b215
SDJ
12172012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1218
1219 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1220 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1221
037bbc8e
YPK
12222012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1223
1224 Enable readline in Python in a GDB-specific way and block the
1225 standard Python readline module to prevent conflicts with GDB.
1226 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1227 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1228 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1229 * python/py-gdb-readline.c: New file.
1230 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1231 prototype.
1232 * python/python.c (_initialize_python): Call
1233 gdbpy_initialize_gdb_readline.
1234
406b1477
KS
12352012-08-22 Keith Seitz <keiths@redhat.com>
1236
1237 * defs.h: Include build-gnulib/config.h
1238
6ca1b147
JM
12392012-08-22 Joseph Myers <joseph@codesourcery.com>
1240
1241 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1242 and blx pc.
1243
8315665e
YPK
12442012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1245
1246 Add a new "python-interactive" command that starts a standard
1247 Python interactive prompt with "pi" as alias, and add "py" as
1248 an alias to "python".
1249 * NEWS: Mention the new commands.
8315665e
YPK
1250 * python/python.c (eval_python_command): New function.
1251 (python_interactive_command): For "python-interactive" with
1252 arguments, call eval_python_command. For "python-interactive"
1253 without arguments, call PyRun_InteractiveLoop.
1254 (_initialize_python): Add "python-interactive" command with
1255 "pi" as alias, and add "py" as an alias to "python".
1256
522002f9
TT
12572012-08-22 Tom Tromey <tromey@redhat.com>
1258
1259 * defs.h (quit_flag): Don't declare.
1260 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1261 (QUIT): Use new functions.
1262 * event-top.c (command_handler): Use clear_quit_flag.
1263 (handle_sigint): Use set_quit_flag.
1264 (async_request_quit): Use check_quit_flag. Don't check
1265 immediate_quit.
1266 * exceptions.c (throw_exception): Use clear_quit_flag.
1267 * main.c (captured_main): Use clear_quit_flag.
1268 * python/python.c (clear_quit_flag, set_quit_flag)
1269 (check_quit_flag): New functions.
1270 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1271 clear_quit_flag.
1272 * remote.c (remote_wait_as): Use check_quit_flag,
1273 clear_quit_flag.
1274 (remote_start_remote): Call QUIT.
1275 * symfile.c (load_progress): Use check_quit_flag.
1276 * top.c (command_loop): Use clear_quit_flag.
1277 (command_line_input): Call QUIT.
1278 * utils.c (quit_flag): Conditionally define.
1279 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1280 functions.
1281 (prompt_for_continue): Call QUIT. Use quit, not
1282 async_request_quit.
1283 * remote-mips.c (mips_expect_timeout): Call QUIT.
1284 * monitor.c (monitor_expect): Call QUIT.
1285
b583003e
TT
12862012-08-22 Tom Tromey <tromey@redhat.com>
1287
1288 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1289 (async_init_signals): Update.
1290 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1291 (SIGWINCH_HANDLER_BODY): Remove.
1292
e1507e95
TT
12932012-08-22 Tom Tromey <tromey@redhat.com>
1294
1295 * jit.c (jit_object_close_impl): Don't malloc the objfile
1296 name.
1297 * objfiles.c (allocate_objfile): Don't malloc the objfile
1298 name.
1299 (free_objfile): Don't free the objfile name.
1300 * objfiles.h (struct objfile) <name>: Update comment.
1301 * symfile.c (reread_symbols): Fix reference counting. Don't
1302 malloc objfile name.
1303
1c00ec6b
TT
13042012-08-22 Tom Tromey <tromey@redhat.com>
1305
1306 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1307 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1308 (symfile_bfd_open): Likewise.
1309 (generic_load): Likewise.
1310 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1311 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1312 gdb_bfd_open.
1313 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1314 Use gdb_bfd_open.
1315 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1316 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1317 (pmon_load_fast): Likewise.
1318 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1319 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1320 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1321 (macho_check_dsym): Likewise.
1322 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1323 (m32r_upload_command): Likewise.
1324 * gdb_bfd.h (gdb_bfd_cache): Declare.
1325 * gdb_bfd.c (struct gdb_bfd_data): New.
1326 (gdb_bfd_cache): New global.
1327 (struct gdb_bfd_cache_search): New.
1328 (hash_bfd): New function.
1329 (eq_bfd): Likewise.
1330 (gdb_bfd_open): Likewise.
1331 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1332 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1333 gdb_bfd_data.
1334 * exec.c (exec_file_attach): Use gdb_bfd_open.
1335 * dsrec.c (load_srec): Use gdb_bfd_open.
1336
6532ff36
TT
13372012-08-22 Tom Tromey <tromey@redhat.com>
1338
1339 * dwarf2read.c (macro_start_file): Update.
1340 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1341 (free_objfile_per_bfd_storage): Destroy macro_cache.
1342 (allocate_objfile, free_objfile): Update.
1343 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1344 New field.
1345 (struct objfile) <macro_cache>: Remove.
1346 * symfile.c (reread_symbols): Update.
1347 * symmisc.c (print_symbol_bcache_statistics): Update.
1348 (print_objfile_statistics): Update.
1349
706e3705
TT
13502012-08-22 Tom Tromey <tromey@redhat.com>
1351
1352 * elfread.c (elf_symtab_read): Update.
1353 * objfiles.c (objfiles_bfd_data): New global.
1354 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1355 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1356 (allocate_objfile, free_objfile): Update.
1357 (_initialize_objfiles): Initialize objfiles_bfd_data.
1358 * objfiles.h (struct objfile_per_bfd_storage): New.
1359 (struct objfile) <per_bfd>: New field.
1360 <filename_cache>: Remove.
1361 (set_objfile_per_bfd): Declare.
1362 * symfile.c (reread_symbols): Update. Call
1363 set_objfile_per_bfd.
1364 (allocate_symtab): Update.
1365 * symmisc.c (print_symbol_bcache_statistics): Update.
1366 (print_objfile_statistics): Print the size of the BFD obstack.
1367
e992eda4
TT
13682012-08-22 Tom Tromey <tromey@redhat.com>
1369
1370 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1371 * gdb_bfd.c: Use DEFINE_REGISTRY.
1372 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1373 (gdb_bfd_ref): Call bfd_alloc_data.
1374 (gdb_bfd_unref): Call bfd_free_data.
1375
6b81941e
TT
13762012-08-22 Tom Tromey <tromey@redhat.com>
1377
1378 * registry.h (struct registry_fields): New.
1379 (REGISTRY_FIELDS): Redefine.
1380 (REGISTRY_ACCESS_FIELD): New macro.
1381 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1382 functions.
1383
8e260fc0
TT
13842012-08-22 Tom Tromey <tromey@redhat.com>
1385
1386 * auto-load.c (_initialize_auto_load): Update.
1387 * solib-svr4.c (_initialize_svr4_solib): Update
1388 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1389 * solib-darwin.c (_initialize_darwin_solib): Update.
1390 * registry.h: New file.
1391 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1392 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1393 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1394 (register_program_space_data_with_cleanup)
1395 (register_program_space_data, program_space_alloc_data)
1396 (clear_program_space_data, set_program_space_data)
1397 (program_space_data): Don't declare.
1398 * progspace.c: Use DEFINE_REGISTRY.
1399 (struct program_space_data, struct
1400 program_space_data_registration, struct
1401 program_space_data_registry, program_space_data_registry)
1402 (register_program_space_data_with_cleanup)
1403 (register_program_space_data, program_space_alloc_data)
1404 (program_space_free_data, clear_program_space_data)
1405 (set_program_space_data, program_space_data): Remove.
1406 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1407 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1408 (register_objfile_data_with_cleanup, register_objfile_data)
1409 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1410 declare.
1411 * objfiles.c: Use DEFINE_REGISTRY.
1412 (struct objfile_data, struct objfile_data_registration, struct
1413 objfile_data_registry, objfile_data_registry)
1414 (register_objfile_data_with_cleanup, register_objfile_data)
1415 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1416 (set_objfile_data, objfile_data): Remove.
1417 (_initialize_objfiles): Update.
1418 * jit.c (_initialize_jit): Update.
1419 * inflow.c (_initialize_inflow): Update.
1420 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1421 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1422 (register_inferior_data_with_cleanup, register_inferior_data)
1423 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1424 declare.
1425 * inferior.c: Use DEFINE_REGISTRY.
1426 (struct inferior_data, struct inferior_data_registration, struct
1427 inferior_data_registry, inferior_data_registry)
1428 (register_inferior_data_with_cleanup, register_inferior_data)
1429 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1430 (set_inferior_data, inferior_data): Remove.
1431 * auxv.c (_initialize_auxv): Update.
1432 * ada-lang.c (_initialize_ada_language): Update.
1433 * breakpoint.c (_initialize_breakpoint): Update.
1434 * i386-nat.c (i386_use_watchpoints): Update.
1435
ed9eebaf
TT
14362012-08-22 Tom Tromey <tromey@redhat.com>
1437
1438 * exec.c (exec_close, exec_file_attach): Update.
1439 (add_to_section_table): Initialize 'key' field.
1440 (add_target_sections, remove_target_sections): Add 'key' argument.
1441 * exec.h (add_target_sections, remove_target_sections): Add
1442 'key' argument.
1443 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1444 (reload_shared_libraries_1): Update.
1445 * target.h (struct target_section) <key>: New field.
1446
2f2e97fa
TT
14472012-08-22 Tom Tromey <tromey@redhat.com>
1448
1449 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1450
b3dbbd6f
PM
14512012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1452
1453 * symfile.c (allocate_symtab): Use host_address_to_string
1454 function instead of cast of pointer to long which is not
1455 compatible with x86_64-w64-mingw32 build.
1456
f94363d7
AP
14572012-08-19 Andrew Pinski <apinski@cavium.com>
1458
1459 * mips-tdep.c (is_octeon): New function.
1460 (is_octeon_bbit_op): New function.
1461 (mips32_next_pc): Handle Octeon's bbit instructions.
1462 (mips32_instruction_has_delay_slot): Likewise.
1463
78a59c2f
AP
14642012-08-19 Andrew Pinski <apinski@cavium.com>
1465
1466 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1467 before the function.
1468
4f5bcb50
AP
14692012-08-19 Andrew Pinski <apinski@cavium.com>
1470
1471 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1472
e5afdbd7
KS
14732012-08-19 Keith Seitz <keiths@redhat.com>
1474
1475 PR c++/14365
1476 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1477 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1478
13c9750e
EZ
14792012-08-18 Eli Zaretskii <eliz@gnu.org>
1480
1481 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1482 The typo broke "make TAGS".
1483
db761810 14842012-08-17 Joel Brobecker <brobecker@adacore.com>
1485
1486 GDB 7.5 released.
1487
a451cb65
KS
14882012-08-17 Keith Seitz <keiths@redhat.com>
1489
1490 PR c++/13356
1491 * gdbtypes.c (strict_type_checking): New variable.
1492 (show_strict_type_checking): New function.
1493 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1494 if strict type checking is disabled.
1495 (_initialize_gdbtypes): Add "check type" subcommand.
1496 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1497
14982012-08-17 Keith Seitz <keiths@redhat.com>
1499
1500 * language.h (type_mode): Remove.
1501 (type_check): Remove.
1502 (struct language_defn): Remove la_type_check.
1503 (STRICT_TYPE): Remove unused macro.
1504 (type_error): Remove.
1505 * language.c (set_type_range_case): Renamed to ...
1506 (set_range_case): ... this. Update all callers.
1507 Remove type_mode/type_check.
1508 (type_mode): Remove.
1509 (type_check): Remove.
1510 (show_type_command): Remove.
1511 (set_type_command): Remove.
1512 (language_info): Remove type checking output.
1513 (type_error): Remove unused function.
1514 (range_error): Update comment.
1515 (unknown_language_defn): Remove la_type_check.
1516 (auto_language_defn): Likewise.
1517 (local_language_defn): Likewise.
1518 (_initialize_language): Remove "check type" subcommand.
1519 * ada-lang.c (ada_language_defn): Remove la_type_check.
1520 * c-lang.c (c_language_defn): Likewise.
1521 (cplus_language_defn): Likewise.
1522 (asm_language_defn): Likewise.
1523 (minimal_language_defn): Likewise.
1524 * d-lang.c (d_language_defn): Likewise.
1525 * f-lang.c (f_language_defn): Likewise.
1526 * go-lang.c (go_language_defn): Likewise.
1527 * jv-lang.c (java_language_defn): Likewise.
1528 * m2-lang.c (m2_language_defn): Likewise.
1529 * objc-lang.c (objc_language_defn): Likewise.
1530 * opencl-lang.c (opencl_language_defn): Likewise.
1531 * p-lang.c (pascal_language_defn): Likewise.
1532
dbf6a605
MF
15332012-08-16 Mike Frysinger <vapier@gentoo.org>
1534
1535 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1536
973e3cf7
JB
15372012-08-16 Joel Brobecker <brobecker@adacore.com>
1538
1539 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1540 New function.
1541 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1542 using the regache. Use ia64_hpux_get_register_from_save_state_t
1543 to access the bsp and bspstore registers if not.
1544
d80ee84f
JB
15452012-08-16 Joel Brobecker <brobecker@adacore.com>
1546
1547 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1548 * breakpoint.c (detach_breakpoints): Change pid parameter into
1549 a ptid. Adjust code accordingly.
1550 * infrun.c (handle_inferior_event): Delete variable child_pid.
1551 Update call to detach_breakpoints to pass the child ptid for
1552 fork events.
1553 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1554 assert that inferior_ptid's lwp is zero.
1555 (linux_handle_extended_wait): Update call to detach_breakpoints.
1556 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1557 detach_breakpoints.
1558
2dcc6086
JB
15592012-08-16 Joel Brobecker <brobecker@adacore.com>
1560
1561 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1562 parent, only call detach_breakpoints if tts.tts_event ==
1563 TTEVT_VFORK.
1564
0c92d8c1
JB
15652012-08-16 Joel Brobecker <brobecker@adacore.com>
1566
1567 * dwarf2-frame.c (dwarf2_frame_cache): Use
1568 get_frame_address_in_block instead of get_frame_pc as
1569 the bound for executing the frame's FDE.
1570
6b1755ce
YQ
15712012-08-16 Yao Qi <yao@codesourcery.com>
1572
1573 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1574 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1575 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1576 (c_type_print_varspec_suffix): Likewise.
1577 * eval.c (evaluate_subexp_standard): Likewise.
1578 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1579 (f_type_print_varspec_suffix): Likewise.
1580 * gdbtypes.c (is_scalar_type): Likewise.
1581 (recursive_dump_type): Likewise.
1582 * infcall.c (value_arg_coerce): Likewise.
1583 * m2-valprint.c (m2_val_print): Likewise.
1584 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1585 (pascal_type_print_varspec_suffix): Likewise.
1586 (pascal_type_print_base): Likewise.
1587 * p-valprint.c (pascal_val_print): Likewise.
1588 (pascal_val_print): Likewise.
1589 * valops.c (value_slice): Likewise.
1590 * valprint.c (scalar_type_p): Likewise.
1591 * valarith.c (value_bitstring_subscript): Remove.
1592 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1593 Remove comment on TYPE_CODE_BITSTRING.
1594
1595 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1596 TYPE_CODE_BITSTRING.
1597
1598 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1599 slot 0.
1600
8acc4065
YQ
16012012-08-16 Yao Qi <yao@codesourcery.com>
1602
1603 * tracepoint.c (trace_find_none_command): Remove.
1604 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1605
8128fd8e
YQ
16062012-08-16 Yao Qi <yao@codesourcery.com>
1607
1608 * remote.c (handle_notification): Remove parameter 'length'.
1609 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1610
2873700e
KS
16112012-08-15 Keith Seitz <keiths@redhat.com>
1612
1613 * gdbtypes.c (opaque_type_resolution): Make static.
1614 Add missing comment.
1615 (overload_debug): Add missing comment.
1616 (show_opaque_type_resolution): Likewise.
1617 (show_overload_debug): Likewise.
1618 (print_bit_vector): Remove unnecessary forward declaration.
1619 (print_arg_types): Likewise.
1620 (dump_fn_fieldlists): Likewise.
1621 (print_cplus_stuff): Likewise.
1622
b82d08cd
TT
16232012-08-15 Tom Tromey <tromey@redhat.com>
1624
1625 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1626 (gdb_bfd_ref): Initialize new field.
1627 (gdb_bfd_unref): Unref the archive BFD.
1628 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1629 parent archive.
1630
db6573d6
TT
16312012-08-15 Tom Tromey <tromey@redhat.com>
1632
1633 PR python/14387:
1634 * python/py-bpevent.c (create_breakpoint_event_object): Update
1635 comment.
1636 * python/py-event.c (evpy_add_attribute): Update comment.
1637 * python/py-exitedevent.c (create_exited_event_object): Fix
1638 reference counting and error handling.
1639 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1640 Fix reference counting.
1641 * python/py-signalevent.c (create_signal_event_object): Fix
1642 reference counting and error handling.
1643 * python/py-stopevent.c (emit_stop_event): Fix reference
1644 counting.
1645 * python/py-threadevent.c (get_event_thread): Return a
1646 borrowed reference.
1647 * python/py-type.c (convert_field): Fix reference counting.
1648
a036ba48
TT
16492012-08-15 Tom Tromey <tromey@redhat.com>
1650
1651 * dwarf2read.c (dwarf_decode_macro_bytes)
1652 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1653 as hash key.
1654
486c7739
MF
16552012-08-14 Mike Frysinger <vapier@gentoo.org>
1656
1657 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1658 stepi, nexti, finish, next, step, jump, and continue commands.
1659 * infrun.c (_initialize_infrun): Update help text for the handle
1660 command.
1661
4cf93a03
DE
16622012-08-14 Doug Evans <dje@google.com>
1663
70b099cf
DE
1664 * gdbtypes.c (struct extra): Delete, unused.
1665
5212577a
DE
1666 * gdbtypes.c: Whitespace cleanup.
1667 (address_space_name_to_int): Remove "extern" from definition.
1668 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1669
4cf93a03
DE
1670 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1671 TYPE_POINTER_TYPE (type).
1672
3756ef7e
GB
16732012-08-14 Gary Benson <gbenson@redhat.com>
1674
1675 * solib-svr4.c (svr4_free_library_list): Use free_so.
1676
40d72643
MF
16772012-08-13 Mike Frysinger <vapier@gentoo.org>
1678
1679 * .gitignore: Add go-exp.c.
1680
f47f77df
DE
16812012-08-13 Doug Evans <dje@google.com>
1682
1683 * value.c (show_convenience): Tweak comment.
1684 (_initialize_values): Mention convenience functions in the help text
1685 for "show convenience".
1686
7507c54a
YQ
16872012-08-13 Yao Qi <yao@codesourcery.com>
1688
1689 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1690 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1691 TERNOP_SLICE_COUNT.
1692 * eval.c (evaluate_subexp_standard): Likewise.
1693 * expprint.c (print_subexp_standard): Likewise.
1694 (dump_subexp_body_standard): Likewise.
1695 * parse.c (operator_length_standard): Likewise.
1696
5cad9736
YQ
16972012-08-13 Yao Qi <yao@codesourcery.com>
1698
1699 * std-operator.def: Remove OP_BITSTRING.
1700 * breakpoint.c (watchpoint_exp_is_const): Update.
1701 * eval.c (evaluate_subexp_standard): Remove handling to
1702 OP_BITSTRING.
1703 * expprint.c (print_subexp_standard): Likewise.
1704 (dump_subexp_body_standard): Likewise.
1705 * parse.c (operator_length_standard): Likewise.
1706 * valops.c (value_bitstring): Remove.
1707 * value.h: Remove the declaration of 'value_bitstring'.
1708
bad7670a
SDJ
17092012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1710
1711 * linespec.c (find_methods): Remove unused variables `i1' and
1712 `name_len'.
1713 (decode_line_full): Likewise for `arg_start'.
1714
d9dce7fa
SDJ
17152012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1716
1717 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1718 (zlib_decompress_section): Likewise for `section_data'.
1719 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1720
a72c3253
DE
17212012-08-10 Doug Evans <dje@google.com>
1722
1723 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1724 * NEWS: Document them.
1725 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1726 function/strfns.py.
1727 * python/py-type.c (typy_array_1): New function.
1728 (typy_array): Call it.
1729 (typy_vector): New function.
1730 (type_object_methods): Add "vector".
1731 * python/lib/gdb/function/__init__.py: New file.
1732 * python/lib/gdb/function/strfns.py: New file.
1733
200bc880
SP
17342012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1735
1736 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1737 for TYPE_FIELD_BITPOS.
1738 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1739
de0bea00
MF
17402012-08-10 Mike Frysinger <vapier@gentoo.org>
1741
1742 PR cli/10436:
1743 * common/vec.h (VEC_merge): Define.
1744 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1745 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1746 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1747 * completer.c: Include gdb_signals.h.
1748 (signal_completer): Define.
1749 * completer.h (signal_completer): Add prototype.
1750 * infcmd.c (_initialize_infcmd): Assign the command
1751 completer for "signal" to handle_completer.
1752 * infrun.c: Include completer.h.
1753 (handle_completer): Define.
1754 (_initialize_infrun): Declare a new local variable c. Store the
1755 result of add_com("handle") to it. Assign the command
1756 completer for "handle" to handle_completer.
1757
5b9afe8a
YQ
17582012-08-09 Yao Qi <yao@codesourcery.com>
1759
1760 * cli/cli-decode.c (set_cmd_prefix): New.
1761 (lookup_cmd_for_prefixlist): New.
1762 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1763 of each cmd_list_element in *prefixlist.
1764 (add_setshow_cmd_full): set_cmd_prefix.
1765 (add_alias_cmd): Likewise.
1766 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1767 Declare 'auto_boolean_enums'.
1768 * cli/cli-setshow.c: Include "observer.h".
1769 (notify_command_param_changed_p): New.
1770 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1771 Remove 'static'.
1772 (do_setshow_command): Split it to ...
1773 (do_set_command, do_show_command): ... them. New.
1774 (do_set_command): Call observer_notify_command_param_changed if
1775 notify_command_param_changed_p returns true.
1776 (cmd_show_list): Caller update.
1777 * auto-load.c (set_auto_load_cmd): Likewise.
1778 * remote.c (show_remote_cmd): Likewise.
1779 * cli/cli-setshow.h: Update declarations.
1780 * top.c (execute_command): Call do_set_command and do_show_command.
1781
1782 * NEWS: Mention new MI notification.
1783 * mi/mi-interp.c: Declare mi_command_param_changed.
1784 (mi_interpreter_init): Attach mi_command_param_changed to
1785 observer command_param_changed.
1786 (mi_command_param_changed): New.
1787 Remove mi_suppress_breakpoint_notifications.
1788 Define global variable mi_suppress_notification.
1789 (mi_breakpoint_created): Update.
1790 (mi_breakpoint_deleted): Likewise.
1791 (mi_breakpoint_modified): Likewise.
1792 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1793 'gdb-set' and set mi_suppress_notification.
1794 * mi/mi-main.h: (mi_suppress_notification): New struct.
1795
1969df89
JK
17962012-08-09 Andreas Tobler <andreast@fgznet.ch>
1797 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1800
8bfd80db
YQ
18012012-08-09 Yao Qi <yao@codesourcery.com>
1802
1803 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1804 (skiplist): Move it to skip.c.
1805 (init_cmd_lists): Remove code setting enablebreaklist and
1806 skiplist to NULL.
1807 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1808 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1809 skiplist.
1810 * gdbcmd.h: Likewise.
1811 * skip.c (_initialize_step_skip): Move 'skiplist' from
1812 cli/cli-cmds.c.
1813
28578e6b
YQ
18142012-08-09 Yao Qi <yao@codesourcery.com>
1815
1816 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1817 * gnu-nat.c, symfile.c: Likewise.
1818
260c0b2a
DE
18192012-08-08 Aaron Gamble <agamble@google.com>
1820
1821 * utils.c (prompt_for_continue_wait_time): New static global.
1822 (make_command_stats_cleanup): Initialize it.
1823 (report_command_stats): Subtract time waiting for user.
1824 (prompt_for_continue): Track time waiting for user.
1825 (defaulted_query): Track time waiting for user.
1826
4f485ebc
DE
18272012-08-08 Doug Evans <dje@google.com>
1828
1829 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1830 UNOP_MEMVAL_TYPE.
1831 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1832 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1833 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1834 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1835 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1836 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1837 elt.
1838 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1839 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1840 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1841 (dump_prefix_expression): Handle OP_TYPE.
1842
2acf2b39
KS
18432012-08-08 Keith Seitz <keiths@redhat.com>
1844
1845 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1846 addr_start.
1847
e6712ff1
DE
18482012-08-08 Doug Evans <dje@google.com>
1849
1850 * linux-thread-db.c: #include "gdb_vecs.h".
1851 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1852 updated.
1853 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1854 (thread_db_load_search): Use a vector to iterate over path elements.
1855 Handle text appearing after "$pdir".
1856
1857 * gdb_string.h: Moved to ...
1858 * common/gdb_string.h: ... here.
1859 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1860 gdb_string.h and gdb_assert.h.
1861
ab854e54
YQ
18622012-08-08 Yao Qi <yao@codesourcery.com>
1863
1864 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1865 (tic6x_value_to_register): Likewise.
1866 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1867 and set_gdbarch_value_to_register.
1868
4f69f4c2
JK
18692012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1870 Jean-Marc Saffroy <saffroy@gmail.com>
1871
1872 PR 11804
1873 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1874 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1875 * gcore.c (gcore_create_callback): New function comment. Add modified
1876 parameter. Only write modified regions. Set SEC_READONLY exactly
1877 according to MODIFIED.
1878 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1879 the passed modified value to FUNC.
1880 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1881 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1882 first. New variables modified and has_anonymous. Parse the lines of
1883 smaps file. Add the passed MODIFIED value to FUNC.
1884 * procfs.c (find_memory_regions_callback): Add the passed modified
1885 value.
1886
78ac5f83
TT
18872012-08-06 Tom Tromey <tromey@redhat.com>
1888
1889 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1890 (dwarf2_frame_cache): Use it.
1891 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1892 cache initialization constraint.
1893
2c12abee
TT
18942012-08-06 Tom Tromey <tromey@redhat.com>
1895
1896 PR python/14386:
1897 * varobj.c (update_dynamic_varobj_children): Don't call
1898 PyIter_Check.
1899
4979d7f0
TT
19002012-08-06 Tom Tromey <tromey@redhat.com>
1901
1902 PR cli/14392:
1903 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1904
f3c8a52a
JK
19052012-08-06 Nathaniel Flath <flat0103@gmail.com>
1906
1907 * NEWS: New entry for 'cd' default parameters.
1908 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1909
5a1cf4d6
TT
19102012-08-03 Tom Tromey <tromey@redhat.com>
1911
1912 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1913 return.
1914
7c3270ae
UW
19152012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1916
1917 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1918 to attempting lseek/write.
1919 (inf_child_fileio_pread): Likewise for pread.
1920
ccce17b0
YQ
19212012-08-02 Yao Qi <yao@codesourcery.com>
1922
1923 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1924 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1925 add_setshow_zinteger_cmd.
1926 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1927 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1928 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1929 instead of add_setshow_zinteger_cmd.
1930 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1931 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1932 instead of add_setshow_zinteger_cmd.
1933 * frame.c (frame_debug): Add 'unsigned'.
1934 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1935 add_setshow_zinteger_cmd.
1936 * frame.h: Update the declaration of 'frame_debug'.
1937 * gdbtypes.c (overload_debug): Add 'unsigned'.
1938 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1939 add_setshow_zinteger_cmd.
1940 * inferior.h: Update declaration of 'debug_infrun'.
1941 * infrun.c (debug_infrun): Add 'unsigned'.
1942 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1943 add_setshow_zinteger_cmd.
1944 * jit.c (jit_debug): Add 'unsigned'.
1945 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1946 add_setshow_zinteger_cmd.
1947 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1948 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1949 instead of add_setshow_zinteger_cmd.
1950 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1951 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1952 add_setshow_zinteger_cmd.
1953 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1954 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1955 instead of add_setshow_zinteger_cmd.
1956 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1957 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1958 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1959 intead of add_setshow_zinteger_cmd.
1960 * mips-tdep.c (mips_debug): Add 'unsigned'.
1961 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1962 instead of add_setshow_zinteger_cmd.
1963 * monitor.c (monitor_debug): Add 'unsigned'.
1964 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1965 add_setshow_zinteger_cmd.
1966 * observer.c (observer_debug): Add 'unsigned'.
1967 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1968 add_setshow_zinteger_cmd.
1969 * parse.c (expressiondebug): Add 'unsigned'.
1970 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1971 add_setshow_zinteger_cmd.
1972 * record.c (record_debug): Add 'unsigned'.
1973 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1974 add_setshow_zinteger_cmd.
1975 * record.h: Update the declaration of 'record_debug'.
1976 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1977 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1978 add_setshow_zinteger_cmd.
1979 * serial.c (global_serial_debug_p): Add 'unsigned'.
1980 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1981 add_setshow_zinteger_cmd.
1982 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1983 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1984 add_setshow_zinteger_cmd.
1985 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1986 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1987 add_setshow_zinteger_cmd.
1988 * target.c (targetdebug): Add 'unsigned'.
1989 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1990 add_setshow_zinteger_cmd.
1991 * valops.c (overload_debug): Add 'unsigned'.
1992 * varobj.c (varobjdebug): Add 'unsigned'.
1993 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1994 add_setshow_zinteger_cmd.
1995 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1996 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1997 instead of add_setshow_zinteger_cmd.
1998
1999 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2000 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2001 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2002 instead of add_setshow_zinteger_cmd.
2003 * gdbarch.c, gdbarch.h: Re-generated.
2004
95b07c96
YQ
20052012-08-02 Yao Qi <yao@codesourcery.com>
2006
2007 * nto-tdep.c: Don't include cli/cli-decode.h and
2008 cli/cli-cmds.h.
2009 (_initialize_nto_tdep): Remove.
2010 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2011 Remove field.
2012 Remove macro nto_internal_debugging.
2013
57295b0b
RH
20142012-08-01 Richard Henderson <rth@redhat.com>
2015
2016 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2017 (mep-*-*) [gdb_target_obs]: Likewise.
2018
f782ad9b
AS
20192012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2020
2021 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2022 linux_get_siginfo_type.
2023
a14dd77e
JK
20242012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2027 AT_ENTRY_POINT.
2028 (call_function_by_hand) <ON_STACK>: Call write_memory with
2029 gdbarch_breakpoint_from_pc, if possible.
2030 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2031 here.
2032
1467929f
YQ
20332012-07-31 Yao Qi <yao@codesourcery.com>
2034
2035 * tracepoint.c: Add 'static' for some variables.
2036
70976b65
YQ
20372012-07-31 Yao Qi <yao@codesourcery.com>
2038
2039 * go32-nat.c: Declare _initialize_go32_nat.
2040 * ser-go32.c: Declare _initialize_ser_dos.
2041 * top.c (do_chdir_cleanup): Add 'static'.
2042
eff9c3e6
KS
20432012-07-30 Keith Seitz <keiths@redhat.com>
2044
2045 * linespec.c (linespec_lex_number): A number followed
2046 by quotes is a valid number, too.
2047
728400d7
TT
20482012-07-30 Tom Tromey <tromey@redhat.com>
2049
2050 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2051
fcf303ab
UW
20522012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2053
2054 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2055 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2056
4e969b4f
AB
20572012-07-30 Andrew Burgess <aburgess@broadcom.com>
2058
2059 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2060 invalid or reevaluated to prevent prevent references to possibly
2061 delete'd type objects being left in the varobj.
2062
c4bfde41
JK
20632012-07-27 Tom Tromey <tromey@redhat.com>
2064 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 * copying.awk: Print buffer-read-only and vi ro markers.
2067 * copying.c: Rebuild.
2068 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2069 * gdbarch.c, gdbarch.h: Rebuild.
2070 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2071 buffer-read-only and vi ro markers.
2072 * features/arm-with-iwmmxt.c: Rebuild.
2073 * features/arm-with-m-fpa-layout.c: Rebuild.
2074 * features/arm-with-m-vfp-d16.c: Rebuild.
2075 * features/arm-with-m.c: Rebuild.
2076 * features/arm-with-neon.c: Rebuild.
2077 * features/arm-with-vfpv2.c: Rebuild.
2078 * features/arm-with-vfpv3.c: Rebuild.
2079 * features/i386/amd64-avx-linux.c: Rebuild.
2080 * features/i386/amd64-avx.c: Rebuild.
2081 * features/i386/amd64-linux.c: Rebuild.
2082 * features/i386/amd64.c: Rebuild.
2083 * features/i386/i386-avx-linux.c: Rebuild.
2084 * features/i386/i386-avx.c: Rebuild.
2085 * features/i386/i386-linux.c: Rebuild.
2086 * features/i386/i386-mmx-linux.c: Rebuild.
2087 * features/i386/i386-mmx.c: Rebuild.
2088 * features/i386/i386.c: Rebuild.
2089 * features/i386/x32-avx-linux.c: Rebuild.
2090 * features/i386/x32-avx.c: Rebuild.
2091 * features/i386/x32-linux.c: Rebuild.
2092 * features/i386/x32.c: Rebuild.
2093 * features/mips-dsp-linux.c: Rebuild.
2094 * features/mips-linux.c: Rebuild.
2095 * features/mips64-dsp-linux.c: Rebuild.
2096 * features/mips64-linux.c: Rebuild.
2097 * features/rs6000/powerpc-32.c: Rebuild.
2098 * features/rs6000/powerpc-32l.c: Rebuild.
2099 * features/rs6000/powerpc-403.c: Rebuild.
2100 * features/rs6000/powerpc-403gc.c: Rebuild.
2101 * features/rs6000/powerpc-405.c: Rebuild.
2102 * features/rs6000/powerpc-505.c: Rebuild.
2103 * features/rs6000/powerpc-601.c: Rebuild.
2104 * features/rs6000/powerpc-602.c: Rebuild.
2105 * features/rs6000/powerpc-603.c: Rebuild.
2106 * features/rs6000/powerpc-604.c: Rebuild.
2107 * features/rs6000/powerpc-64.c: Rebuild.
2108 * features/rs6000/powerpc-64l.c: Rebuild.
2109 * features/rs6000/powerpc-7400.c: Rebuild.
2110 * features/rs6000/powerpc-750.c: Rebuild.
2111 * features/rs6000/powerpc-860.c: Rebuild.
2112 * features/rs6000/powerpc-altivec32.c: Rebuild.
2113 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2114 * features/rs6000/powerpc-altivec64.c: Rebuild.
2115 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2116 * features/rs6000/powerpc-cell32l.c: Rebuild.
2117 * features/rs6000/powerpc-cell64l.c: Rebuild.
2118 * features/rs6000/powerpc-e500.c: Rebuild.
2119 * features/rs6000/powerpc-e500l.c: Rebuild.
2120 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2121 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2122 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2123 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2124 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2125 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2126 * features/rs6000/powerpc-vsx32.c: Rebuild.
2127 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2128 * features/rs6000/powerpc-vsx64.c: Rebuild.
2129 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2130 * features/rs6000/rs6000.c: Rebuild.
2131 * features/s390-linux32.c: Rebuild.
2132 * features/s390-linux32v1.c: Rebuild.
2133 * features/s390-linux32v2.c: Rebuild.
2134 * features/s390-linux64.c: Rebuild.
2135 * features/s390-linux64v1.c: Rebuild.
2136 * features/s390-linux64v2.c: Rebuild.
2137 * features/s390x-linux64.c: Rebuild.
2138 * features/s390x-linux64v1.c: Rebuild.
2139 * features/s390x-linux64v2.c: Rebuild.
2140 * features/tic6x-c62x-linux.c: Rebuild.
2141 * features/tic6x-c62x.c: Rebuild.
2142 * features/tic6x-c64x-linux.c: Rebuild.
2143 * features/tic6x-c64x.c: Rebuild.
2144 * features/tic6x-c64xp-linux.c: Rebuild.
2145 * features/tic6x-c64xp.c: Rebuild.
2146
826f0041
TT
21472012-07-27 Tom Tromey <tromey@redhat.com>
2148
2149 * c-exp.y (classify_name): Avoid assignment in condition.
2150
84552b16
PA
21512012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2152
2153 * amd64-windows-tdep.c: Include "frame.h".
2154 (amd64_windows_skip_trampoline_code): New function.
2155 (amd64_windows_init_abi): Add trampoline registration.
2156
a8a64aa8
YQ
21572012-07-27 Yao Qi <yao@codesourcery.com>
2158
2159 * tracepoint.c (cur_traceframe_number): Remove.
2160 (set_tfile_traceframe): Remove.
2161 (tfile_trace_find, tfile_fetch_registers): Update callers.
2162 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2163 (tfile_open, tfile_trace_find): Likewise.
2164
d99067cb
YQ
21652012-07-27 Yao Qi <yao@codesourcery.com>
2166
2167 * thread.c (switch_to_thread): Don't call registers_changed.
2168
f2e8016f
TT
21692012-07-26 Tom Tromey <tromey@redhat.com>
2170
f782ad9b
AS
2171 * Makefile.in (SFILES): Remove objc-exp.y.
2172 (YYFILES): Remove objc-exp.c.
2173 (YYOBJ): Remove objc-exp.o.
2174 (local-maintainer-clean): Don't mention objc-exp.c.
2175 * c-exp.y: Include objc-lang.h.
2176 (%union) <class>: New field.
2177 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2178 (exp): Clone subscript production for OBJC_LBRAC. Add various
2179 Objective C productions.
2180 (msglist, msgarglist, msgarg): New productions.
2181 (array_mod, func_mod, operator): Clone productions for
2182 OBJC_LBRAC.
2183 (parse_string_or_char): Handle '@' strings.
2184 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2185 (classify_name): Check la_name_of_this. Recognize ObjC class
2186 names.
2187 * objc-exp.y: Remove.
2188 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2189 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2190
f66713d2
JK
21912012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2192
2193 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2194
7cfe01b4
JK
21952012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2196
2197 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2198 and decrement.
2199
5ba19b4c
TT
22002012-07-26 Tom Tromey <tromey@redhat.com>
2201
2202 * copying.c: Rebuild.
2203 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2204 'no_class'.
2205
27618ce4
TT
22062012-07-26 Tom Tromey <tromey@redhat.com>
2207
2208 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2209 immediate_quit.
2210 (print_objfile_statistics): Likewise.
2211 (maintenance_print_symbols): Likewise.
2212 (maintenance_print_msymbols): Likewise.
2213 (maintenance_print_objfiles): Likewise.
2214 * psymtab.c (print_partial_symbols): Call QUIT.
2215 (maintenance_print_psymbols): Likewise. Don't modify
2216 immediate_quit.
2217 * copying.c (show_copying_command): Don't modify immediate_quit.
2218 (show_warranty_command): Likewise.
2219 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2220
dd3818c8
KS
22212012-07-26 Keith Seitz <keiths@redhat.com>
2222
2223 * linespec.c (linespec_lexer_lex_number): The input
2224 is also a valid number if the next character is a comma
2225 or colon.
2226
23a80689
JB
22272012-07-26 Joel Brobecker <brobecker@adacore.com>
2228
2229 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2230 configure options.
2231
29f77997
TG
22322012-07-26 Tristan Gingold <gingold@adacore.com>
2233
2234 * machoread.c: Include gdb_bfd.h.
2235
a55c1f32
TG
22362012-07-26 Tristan Gingold <gingold@adacore.com>
2237
2238 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2239 offset.
2240
56eb65bd
SP
22412012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2242
2243 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2244 SIZE to size_t.
2245 (dwarf2_evaluate_loc_desc): Likewise.
2246 (dwarf2_loc_desc_needs_frame): Likewise.
2247 (locexpr_describe_location_1): Likewise.
2248 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2249 size_t.
2250 (struct dwarf2_loclist_baton): Likewise.
2251 * dwarf2read.c (struct dwarf_block): Likewise.
2252 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2253 (decode_locdesc): Expand SIZE and I to size_t.
2254
aec8845c
JK
22552012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2258
33d7655b
JB
22592012-07-25 Joel Brobecker <brobecker@adacore.com>
2260
2261 * doublest.c (convert_doublest_to_floatformat): If the exponent
2262 is too small, treat the value as zero. If the exponent is too
2263 large, treat the value as infinity.
2264
a22d44ff
JB
22652012-07-25 Joel Brobecker <brobecker@adacore.com>
2266
2267 * configure.ac: Add --enable-lmcheck configure option.
2268 * configure: Regenerate.
2269
d6b28940
TT
22702012-07-25 Tom Tromey <tromey@redhat.com>
2271
f782ad9b
AS
2272 * NEWS: Mention maint info bfds.
2273 * gdb_bfd.c (all_bfds): New global.
2274 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2275 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2276 New functions.
d6b28940 2277
6e73ba20
RC
22782012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2279
2280 * configure.tgt: Add v850*-*-rtems*.
2281
d560eebd
TT
22822012-07-25 Tom Tromey <tromey@redhat.com>
2283
2284 * macrotab.c (macro_bcache_str): Remove cast.
2285
d7cbec71
HZ
22862012-07-25 Hui Zhu <hui_zhu@mentor.com>
2287
2288 * linespec.c (linespec_lexer_lex_number): Update comments,
2289 change the return and add check to make sure the input is
2290 the decimal numbers.
2291 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2292 false, call linespec_lexer_lex_string.
2293
882f447f
TT
22942012-07-24 Tom Tromey <tromey@redhat.com>
2295
2296 * symfile.c (symbol_file_add): Don't open BFD twice.
2297
53ab4066 22982012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2299
2300 * breakpoint.c (create_breakpoint): Store condition for pending
2301 breakpoints.
2302
108fb0f7
AS
23032012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2304
2305 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2306 (m68k_return_value): Handle complex types like structures.
2307 (m68k_svr4_return_value): Likewise.
2308
1634dcbe
JK
23092012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2310
2311 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2312 parameters to bfd_get_section_name.
2313
e2d12c21
YQ
23142012-07-24 Yao Qi <yao@codesourcery.com>
2315
2316 * cli/cli-setshow.c: Handle case 'var_uinteger'
2317 and 'var_zuninteger' together. Handle case 'var_integer' and
2318 'var_zinteger' together.
2319
64b92e45
KS
23202012-07-23 Keith Seitz <keiths@redhat.com>
2321
2322 * linespec.c (convert_linespec_to_sal): Don't add
2323 any symbols to the result vector if symbol_to_sal
2324 returns zero.
2325
0f5f4ffe
KS
23262012-07-23 Keith Seitz <keiths@redhat.com>
2327
2328 * linespec.c (decode_objc): Record the function name
2329 in the linespec.
2330
da1cc82f
TT
23312012-07-23 Tom Tromey <tromey@redhat.com>
2332
2333 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2334 counting.
2335 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2336 (map_vmap): Acquire a reference to the BFD.
2337
6c18f3e0
SP
23382012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2339
2340 * p-valprint.c (pascal_object_print_value): Replace potentially
2341 unsafe alloca with xmalloc/xfree.
2342 * valops.c (search_struct_method): Likewise.
2343
695c3173
TT
23442012-07-23 Tom Tromey <tromey@redhat.com>
2345
2346 * solib-svr4.c (enable_break): Update.
2347 * bfd-target.h (target_bfd_reopen): Update documentation.
2348
08d2cd74
TT
23492012-07-23 Tom Tromey <tromey@redhat.com>
2350
2351 * symfile.c (separate_debug_file_exists): Update.
2352 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2353 (reread_symbols): Update.
2354 * elfread.c (build_id_verify): Update.
2355 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2356 bfd_open_maybe_remote.
2357
596f7d67
TT
23582012-07-23 Tom Tromey <tromey@redhat.com>
2359
2360 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2361
8ac244b4
TT
23622012-07-23 Tom Tromey <tromey@redhat.com>
2363
2364 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2365 and 'abfd'.
2366 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2367 and 'abfd'.
2368 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2369 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2370 'abfd'.
2371 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2372 * objfiles.c (allocate_objfile): Acquire a new reference.
2373 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2374 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2375 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2376 a cleanup for 'nbfd'.
2377 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2378 for 'nbfd'.
2379 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2380 make a cleanup for 'abfd'.
2381 (symbol_file_add): Make a BFD cleanup.
2382
64c31149
TT
23832012-07-23 Tom Tromey <tromey@redhat.com>
2384
2385 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2386 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2387 * corelow.c (core_open): Use gdb_bfd_fopen.
2388 * dsrec.c (load_srec): Use gdb_bfd_openr.
2389 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2390 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2391 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2392 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2393 (gdb_bfd_fdopenr): New functions.
2394 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2395 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2396 (gdb_bfd_fdopenr): Declare.
2397 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2398 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2399 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2400 gdb_bfd_openr_next_archived_file.
2401 (macho_check_dsym): Use gdb_bfd_openr.
2402 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2403 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2404 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2405 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2406 gdb_bfd_openr.
2407 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2408 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2409 gdb_bfd_openr_next_archived_file.
2410 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2411 Use gdb_bfd_openr.
2412 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2413 gdb_bfd_openr.
2414 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2415 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2416 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2417 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2418 (symfile_bfd_open): Use gdb_bfd_fopen.
2419 (generic_load): Use gdb_bfd_openr.
2420 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2421
520b0001
TT
24222012-07-23 Tom Tromey <tromey@redhat.com>
2423
2424 * bfd-target.c (target_bfd_reopen): Update.
2425 * cli/cli-dump.c (bfd_openr_with_cleanup)
2426 (bfd_openw_with_cleanup): Update.
2427 * corelow.c (core_open): Update.
2428 * dsrec.c (load_srec): Update.
2429 * exec.c (exec_file_attach): Update.
2430 * gcore.c (create_gcore_bfd): Update.
2431 * gdb_bfd.c (gdb_bfd_ref): Return void.
2432 (gdb_bfd_open): Update.
2433 * gdb_bfd.h (gdb_bfd_ref): Return void.
2434 Update comments.
2435 * jit.c (jit_bfd_try_read_symtab): Update.
2436 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2437 * machoread.c (macho_symfile_read_all_oso): Update.
2438 (macho_check_dsym): Update.
2439 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2440 * remote-m32r-sdi.c (m32r_load): Update.
2441 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2442 * rs6000-nat.c (add_vmap): Update.
2443 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2444 Update.
2445 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2446 * solib-spu.c (spu_bfd_open): Update.
2447 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2448 * spu-linux-nat.c (spu_bfd_open): Update.
2449 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2450 (generic_load): Update.
2451 * windows-nat.c (windows_make_so): Update.
2452
2322ff16
SP
24532012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2454
2455 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2456
3def0b36
PA
24572012-07-20 Jeff Kenton <jkenton@tilera.com>
2458
2459 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2460 SIGTRAMP_FRAME unwinding.
2461
e615022a
DE
24622012-07-20 Doug Evans <dje@google.com>
2463
2464 * NEWS: Document new options "set/show use-deprecated-index-sections",
2465 and delete reference to --use-deprecated-index-sections.
2466 * symfile.h (use_deprecated_index_sections): Delete.
2467 * dwarf2read.c (use_deprecated_index_sections): Make static.
2468 (read_index_from_section): Update wording of how to load
2469 deprecated index sections.
2470 (_initialize_dwarf2_read): New options
2471 "set/show use-deprecated-index-sections".
2472 * main.c (captured_main): Delete --use-deprecated-index-sections.
2473
64776a0b
PA
24742012-07-20 Pedro Alves <palves@redhat.com>
2475
2476 PR threads/11692
2477 PR gdb/12203
2478
2479 * infrun.c (handle_inferior_event) <new thread>: Don't special
2480 case minus_one_ptid.
2481 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2482 * linux-thread-db.c (thread_get_info_callback): Don't return early
2483 if the thread is zombie.
2484 (thread_from_lwp): Change return type to void. Rewrite stale
2485 comment.
2486 (attach_thread): Don't return early if the thread is zombie,
2487 instead set its "dying" flag.
2488 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2489 (find_new_threads_callback): Don't return early if the thread is
2490 zombie.
2491
09826ec5
PA
24922012-07-20 Pedro Alves <palves@redhat.com>
2493
2494 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2495 * target.c (target_wait): Likewise.
2496 (str_comma_list_concat_elem, do_option, target_options_to_string):
2497 New functions.
2498 * target.h (target_options_to_string): Declare.
2499
f7a35f02
TT
25002012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2501 Tom Tromey <tromey@redhat.com>
2502
2503 * dwarf2read.c (dwarf_decode_macros)
2504 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2505 DW_MACRO_GNU_transparent_include_alt>: New cases.
2506 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2507 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2508
b81e1ee0
TT
25092012-07-20 Tom Tromey <tromey@redhat.com>
2510
2511 * dwarf2read.c (try_open_dwo_file): Don't call
2512 gdb_bfd_stash_filename.
2513
99c1624c
PA
25142012-07-20 Pedro Alves <palves@redhat.com>
2515
2516 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2517 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2518 (i386_process_record): Tweak description comments.
2519
4ffa4fc7
PA
25202012-07-20 Pedro Alves <palves@redhat.com>
2521
2522 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2523 (i386_process_record): Use record_read_memory.
2524 * record.c (record_read_memory): New function.
2525 (record_arch_list_add_mem, record_exec_insn): Use
2526 record_read_memory.
2527 * record.h (record_read_memory): Declare.
2528
c24343e2
YQ
25292012-07-20 Yao Qi <yao@codesourcery.com>
2530
2531 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2532 NULL for xfree.
2533
90f47860
PA
25342012-07-19 Pedro Alves <palves@redhat.com>
2535
2536 * record.c (record_resume): Ask the target beneath to report all
2537 signals.
2538
01093045
DE
25392012-07-19 Doug Evans <dje@google.com>
2540
2541 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2542 there's no section at address zero.
2543 (dwarf2_record_block_ranges): Ditto.
2544
a7c3d162
YQ
25452012-07-19 Yao Qi <yao@codesourcery.com>
2546
2547 * command.h, remote.c: Fix a typo in comment.
2548
608b4967
TT
25492012-07-19 Tom Tromey <tromey@redhat.com>
2550
2551 PR exp/13206:
2552 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2553 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2554 OP_DECLTYPE>: New cases.
2555 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2556 (type_exp): Add new productions.
2557 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2558 and decltype.
2559 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2560 New case.
2561 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2562 OP_DECLTYPE>: New case.
2563 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2564 New case.
2565 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2566 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2567
274b54d7
TT
25682012-07-19 Tom Tromey <tromey@redhat.com>
2569
2570 * c-exp.y (enum token_flags): New.
2571 (struct token) <cxx_only>: Remove.
2572 <flags>: New field.
2573 (tokentab3, tokentab2, ident_tokens): Update.
2574 (lex_one_token): Update. Handle FLAG_SHADOW.
2575
9eaf6705
TT
25762012-07-19 Tom Tromey <tromey@redhat.com>
2577
2578 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2579 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2580 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2581 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2582 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2583 type_exp production where appropriate.
2584 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2585 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2586 <UNOP_MEMVAL_TYPE>: New case.
2587 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2588 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2589 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2590 <UNOP_MEMVAL_TYPE>: New case.
2591 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2592 UNOP_REINTERPRET_CAST>: Update.
2593 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2594 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2595 UNOP_REINTERPRET_CAST>: Update.
2596 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2597 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2598 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2599 constants.
2600
6ace3df1
YQ
26012012-07-19 Yao Qi <yao@codesourcery.com>
2602 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2605 and case 'var_optional_filename' together.
2606 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2607 instead of add_setshow_optional_filename_cmd for setshow command
2608 'args'. Set completer for 'set args'.
2609
48faced0
DE
26102012-07-18 Doug Evans <dje@google.com>
2611
2612 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2613 * common/gdb_vecs.c: New file, contents from utils.c.
2614 * common/host-defs.h: New file, contents from defs.h.
2615 * utils.h: New file, contents from defs.h.
2616 * defs.h: Move all declarations of objects defined in utils.c
2617 to utils.h (except QUIT() and related).
2618 #include "utils.h", "host-defs.h".
2619 * probe.h (probe_p): Move here from gdb_vecs.h.
2620 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2621 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2622 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2623 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2624 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2625 (COMMON_OBS): Add gdb_vecs.o.
2626 (gdb_vecs.o): New rule.
2627
66f1999b
KS
26282012-07-18 Keith Seitz <keiths@redhat.com>
2629
2630 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2631 parameter. If non-zero, use SYMNAME as the canonical name
2632 for the SaL.
2633 Update all callers.
2634 (convert_linespec_to_sals): Use add_sal_to_sals for
2635 expressions, too.
2636 (decode_line_full): No need to "fill in missing canonical names"
2637 anymore. Simply make cleanups for the allocated names.
2638
5d94e27b
KS
26392012-07-18 Keith Seitz <keiths@redhat.com>
2640
2641 * linespec.c (struct linespec): Constify expression,
2642 source_filename, function_name, and label_name.
2643 (symbol_not_found_error): Make all parameters const.
2644 (linespec_parser_delete): No need to check for NULL
2645 when using xfree. Cast const char * to char * for xfree.
2646
af4908ba
KS
26472012-07-18 Keith Seitz <keiths@redhat.com>
2648
2649 * breakpoint.c (invalid_thread_id_error): New function.
2650 (find_condition_and_thread): Use invalid_thread_id_error.
2651 (watch_command_1): Likewise.
2652
853254db
TT
26532012-07-18 Tom Tromey <tromey@redhat.com>
2654
2655 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2656 * contrib/cc-with-tweaks.sh: New file.
2657
2ec9a5e0
TT
26582012-07-18 Tom Tromey <tromey@redhat.com>
2659
2660 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2661 (locate_dwz_sections): Recognize .gdb_index.
2662 (create_cus_from_index_list): New function.
2663 (create_cus_from_index): Use it. Handle .dwz data.
2664 (read_index_from_section): New function, extracted from
2665 dwarf2_read_index.
2666 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2667 if needed.
2668
36586728
TT
26692012-07-18 Tom Tromey <tromey@redhat.com>
2670
2671 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2672 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2673 <is_dwz>: New field.
2674 (struct dwz_file): New.
2675 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2676 (locate_dwz_sections, dwarf2_get_dwz_file)
2677 (get_abbrev_section_for_cu): New functions.
2678 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2679 (read_and_check_type_unit_head): Add abbrev_section argument.
2680 (create_debug_types_hash_table): Update.
2681 (init_cutu_and_read_dies): Use proper abbrev section.
2682 (init_cutu_and_read_dies_no_follow): Likewise.
2683 (set_partial_user): Do nothing if PST==NULL.
2684 (read_comp_units_from_section): New function.
2685 (create_all_comp_units): Use it.
2686 (scan_partial_symbols, partial_die_parent_scope): Update.
2687 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2688 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2689 (find_partial_die): Add offset_in_dwz argument. Update.
2690 (guess_partial_die_structure_name, fixup_partial_die): Update.
2691 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2692 DW_FORM_GNU_strp_alt.
2693 (read_indirect_string_from_dwz): New function.
2694 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2695 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2696 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2697 (follow_die_offset): Add offset_in_dwz argument.
2698 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2699 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2700 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2701 Handle new macro forms.
2702 (dwarf_decode_macros): Update.
2703 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2704 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2705 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2706 (create_debug_types_hash_table): Use correct abbrev section.
2707 (get_debug_line_section): New function.
2708 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2709 (process_full_comp_unit): Pass 'required' argument to
2710 end_symtab_get_static_block.
2711 * buildsym.h (end_symtab_get_static_block): Update.
2712 * buildsym.c (end_symtab_get_static_block): Add 'required'
2713 argument.
2714 (end_symtab, end_expandable_symtab): Update.
2715
4bf44c1c
TT
27162012-07-18 Tom Tromey <tromey@redhat.com>
2717
2718 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2719 (pagesize): Remove.
2720 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2721 (zlib_decompress_section): Remove.
2722 (dwarf2_read_section): Use gdb_bfd_map_section.
2723 (munmap_section_buffer): Remove.
2724 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2725 munmap_section_buffer.
2726 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2727 (struct gdb_bfd_section_data): New.
2728 (free_one_bfd_section): New function.
2729 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2730 (get_section_descriptor, zlib_decompress_section)
2731 (gdb_bfd_map_section): New functions.
2732 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2733
bb397797
TT
27342012-07-18 Tom Tromey <tromey@redhat.com>
2735
2736 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2737
6ec53d05
TT
27382012-07-18 Tom Tromey <tromey@redhat.com>
2739
2740 * gdb_bfd.c (struct gdb_bfd_data): New.
2741 (gdb_bfd_cache): New global.
2742 (struct gdb_bfd_cache_search): New.
2743 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2744 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2745 * gdb_bfd.h (gdb_bfd_open): Declare.
2746
f9a062ff
TT
27472012-07-18 Tom Tromey <tromey@redhat.com>
2748
2749 * utils.c (make_cleanup_bfd_unref): Rename from
2750 make_cleanup_bfd_close.
2751 * defs.h (make_cleanup_bfd_unref): Rename from
2752 make_cleanup_bfd_close.
2753 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2754 (bfd_openw_with_cleanup): Update.
2755 * corelow.c (core_open): Update.
2756 * dsrec.c (load_srec): Update.
2757 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2758 * remote-m32r-sdi.c (m32r_load): Update.
2759 * remote-mips.c (mips_load_srec): Update.
2760 (pmon_load_fast): Update.
2761 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2762 Update.
2763 (darwin_bfd_open): Update.
2764 * solib.c (solib_bfd_fopen): Update.
2765 * symfile-mem.c (symbol_file_add_from_memory): Update.
2766 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2767 (symfile_bfd_open): Update.
2768 (generic_load): Update.
2769
d6ad71ba
TT
27702012-07-18 Tom Tromey <tromey@redhat.com>
2771
2772 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2773 (pmon_load_fast): Likewise.
2774 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2775 (m32r_upload_command): Likewise.
2776 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2777 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2778 Use make_cleanup_bfd_close.
2779
a4453b7e
TT
27802012-07-18 Tom Tromey <tromey@redhat.com>
2781
2782 * symfile.c (symfile_bfd_open): Don't copy name. Call
2783 gdb_bfd_stash_filename.
2784 (load_command): Open the new BFD before freeing the old.
2785 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2786 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2787 Call gdb_bfd_stash_filename.
2788 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2789 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2790 gdb_bfd_stash_filename.
2791 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2792 Free found_pathname.
2793 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2794 gdb_bfd_stash_filename.
2795 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2796 * machoread.c (macho_add_oso_symfile): Call
2797 gdb_bfd_stash_filename.
2798 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2799 gdb_bfd_stash_filename.
2800 (macho_check_dsym): Don't copy filename. Call
2801 gdb_bfd_stash_filename.
2802 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2803 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2804 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2805 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2806 * exec.c (exec_close): Don't free the BFD's filename.
2807 (exec_file_attach): Don't copy the filename. Call
2808 gdb_bfd_stash_filename.
2809 * corelow.c (core_close): Don't free the BFD's filename.
2810 (core_open): Call gdb_bfd_stash_filename.
2811 * corefile.c (reopen_exec_file): Remove #if 0 code.
2812 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2813 pathname.
2814 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2815
cbb099e8
TT
28162012-07-18 Tom Tromey <tromey@redhat.com>
2817
2818 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2819 gdb_bfd_unref.
2820 (free_dwo_file): Use gdb_bfd_unref.
2821 * cli/cli-dump.c: Include gdb_bfd.h.
2822 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2823 (bfd_openr_with_cleanup): Likewise.
2824 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2825 gdb_bfd_unref.
2826 * utils.c: Include gdb_bfd.h.
2827 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2828 * symfile.c: Include gdb_bfd.h.
2829 (separate_debug_file_exists): Use gdb_bfd_unref.
2830 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2831 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2832 (generic_load): Use gdb_bfd_ref.
2833 (reread_symbols): Use gdb_bfd_unref.
2834 * symfile-mem.c: Include gdb_bfd.h.
2835 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2836 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2837 * solib.c: Include gdb_bfd.h.
2838 (solib_bfd_fopen): Use gdb_bfd_ref.
2839 (solib_bfd_open): Use gdb_bfd_unref.
2840 (free_so_symbols): Use gdb_bfd_unref.
2841 (reload_shared_libraries_1): Use gdb_bfd_unref.
2842 * solib-spu.c: Include gdb_bfd.h.
2843 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2844 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2845 gdb_bfd_unref.
2846 * solib-frv.c: Include gdb_bfd.h.
2847 (enable_break2): Use gdb_bfd_unref.
2848 * solib-dsbt.c: Include gdb_bfd.h.
2849 (enable_break2): Use gdb_bfd_unref.
2850 * solib-darwin.c: Include gdb_bfd.h.
2851 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2852 gdb_bfd_unref.
2853 (darwin_bfd_open): Use gdb_bfd_unref.
2854 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2855 * remote-mips.c: Include gdb_bfd.h.
2856 (mips_load_srec): Use gdb_bfd_ref.
2857 (pmon_load_fast): Use gdb_bfd_ref.
2858 * remote-m32r-sdi.c: Include gdb_bfd.h.
2859 (m32r_load): Use gdb_bfd_ref.
2860 * record.c: Include gdb_bfd.h.
2861 (record_save_cleanups): Use gdb_bfd_unref.
2862 (cmd_record_save): Use gdb_bfd_unref.
2863 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2864 gdb_bfd_unref.
2865 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2866 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2867 * objfiles.c: Include gdb_bfd.h.
2868 (free_objfile): Use gdb_bfd_unref.
2869 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2870 gdb_bfd.c.
2871 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2872 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2873 (macho_check_dsym): Likewise.
2874 * m32r-rom.c: Include gdb_bfd.h.
2875 (m32r_load): Use gdb_bfd_ref.
2876 (m32r_upload_command): Use gdb_bfd_ref.
2877 * jit.c: Include gdb_bfd.h.
2878 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2879 * gdb_bfd.h: New file.
2880 * gdb_bfd.c: New file.
2881 * gcore.c: Include gdb_bfd.h.
2882 (create_gcore_bfd): Use gdb_bfd_ref.
2883 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2884 (gcore_command): Use gdb_bfd_unref.
2885 * exec.c: Include gdb_bfd.h.
2886 (exec_close): Use gdb_bfd_unref.
2887 (exec_close_1): Use gdb_bfd_unref.
2888 (exec_file_attach): Use gdb_bfd_ref.
2889 * elfread.c: Include gdb_bfd.h.
2890 (build_id_verify): Use gdb_bfd_unref.
2891 * dsrec.c: Include gdb_bfd.h.
2892 (load_srec): Use gdb_bfd_ref.
2893 * corelow.c: Include gdb_bfd.h.
2894 (core_close): Use gdb_bfd_unref.
2895 (core_open): Use gdb_bfd_ref.
2896 * bfd-target.c: Include gdb_bfd.h.
2897 (target_bfd_xclose): Use gdb_bfd_unref.
2898 (target_bfd_reopen): Use gdb_bfd_ref.
2899 * Makefile.in (SFILES): Add gdb_bfd.c.
2900 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2901 (COMMON_OBS): Add gdb_bfd.o.
2902
ed1d1739
KS
29032012-07-18 Keith Seitz <keiths@redhat.com>
2904
2905 * breakpoint.c (find_condition_and_thread): Initialize
2906 TASK and REST.
2907 (create_breakpiont): find_condition_and_thread will now
2908 initialize COND_STRING, THREAD, and REST (and TASK).
2909 (addr_string_to_sals): Likewise.
2910
eab402df
PA
29112012-07-18 Pedro Alves <palves@redhat.com>
2912
2913 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2914 Pull the single step breakpoints out of the target.
2915
2b963b68
SDJ
29162012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2917
2918 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2919 * stap-probe.c (compile_probe_arg): Likewise.
2920
6bac7473
SDJ
29212012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2922
2923 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2924 (elf_compile_to_ax): Likewise.
2925 * infrun.c (insert_exception_resume_from_probe): Likewise.
2926 (check_exception_resume): Remove `objfile' variable.
2927 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2928 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2929 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2930 (compare_entries): Rename to...
2931 (compare_probes): ...this. Adjust function to work with
2932 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2933 respectively.
2934 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2935 `VEC (probe_p) *'.
2936 (print_ui_out_info): Adjust argument to be `struct probe *'.
2937 (info_probes_for_ops): Adjust internal computations to use
2938 `VEC (probe_p) *'.
2939 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2940 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2941 gen_info_probes_table_values>: Remove `objfile' argument.
2942 (struct probe) <objfile>: New field.
2943 (find_probe_by_pc): Remove `objfile' argument.
2944 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2945 (stap_get_probe_argument_count): Likewise.
2946 (stap_get_arg): Likewise.
2947 (stap_evaluate_probe_argument): Likewise.
2948 (stap_compile_to_ax): Likewise.
2949 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2950 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2951 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2952 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2953 sym_compile_to_ax>: Likewise.
2954
3347eb1a 29552012-07-18 Terry Guo <terry.guo@arm.com>
2956
2957 PR 14329
2958 * defs.h (GDB_MI_MSG_WIDTH): New.
2959 * ser_base (ser_base_read_error_fd): New function.
2960 (do_ser_base_readchar): Poll error file descriptor as well as
2961 standard output.
f782ad9b 2962 (generic_readchar): Refactor error handling.
3347eb1a 2963
80c8d323
JB
29642012-07-18 Joel Brobecker <brobecker@adacore.com>
2965
2966 * NEWS: Create a new section for the next release branch.
2967 Rename the section of the current branch, now that it has
2968 been cut.
2969
b45a0664 29702012-07-18 Joel Brobecker <brobecker@adacore.com>
2971
2972 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2973 * version.in: Bump version to 7.5.50.20120718-cvs.
2974
09cf2b22
KS
29752012-07-17 Keith Seitz <keiths@redhat.com>
2976
2977 * linespec.c (linespec_parse_line_offset): Make parameter
2978 const.
2979
8f043999
JK
29802012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 PR 11914
2983 * f-valprint.c (info_common_command): New variable frame_id.
2984 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2985 * printcmd.c (print_variable_and_value): Extend function comment.
2986 Add comment for invalidated FRAME.
2987 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2988 FI form FRAME_ID after each print_frame_local_vars.
2989 (struct print_variable_and_value_data): Change frame to frame_id.
2990 (do_print_variable_and_value): New variable frame, initialize it from
2991 p->frame_id. Add comment for invalidated FRAME.
2992 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2993 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2994 for invalidated FRAME.
2995
ae5e0686
MK
29962012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2997 Pedro Alves <palves@redhat.com>
2998
2999 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3000 loop.
3001
5049c5be
TT
30022012-07-16 Tom Tromey <tromey@redhat.com>
3003
3004 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3005
2908cac6
DE
30062012-07-15 Doug Evans <dje@google.com>
3007
094b34ac
DE
3008 * dwarf2read.c (stmt_list_hash): New struct.
3009 (type_unit_group): Embed "per_cu" member, remove pointer.
3010 New union member "t", move member "tus" into it, all uses updated.
3011 New member "hash", replaces member "line_offset, all uses updated.
3012 (quick_file_names): Replace member "offset" with "hash", all uses
3013 updated.
3014 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3015 (hash_file_name_entry, eq_file_name_entry): Call them.
3016 (hash_type_unit_group, eq_type_unit_group): Ditto.
3017 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3018 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3019 (dw2_get_file_names): Update.
3020 (create_type_unit_group): Replace "per_cu" arg with "cu".
3021 All callers updated. Fix "quick" (.gdb_index) handling.
3022 (get_type_unit_group): Replace "per_cu" arg with "cu".
3023 All callers updated.
3024 (build_type_unit_groups): Don't reset tu_stats.
3025
2908cac6
DE
3026 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3027 "tab_cur_size". Change member "tab" to be a htab_t.
3028 (create_filename_seen_cache): Update.
3029 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3030 (filename_seen): Update.
3031
a2b6eff5
DE
30322012-07-13 Doug Evans <dje@google.com>
3033
3034 * symtab.c (filename_seen): Update comment.
3035
4359dff1
JK
30362012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3037 Doug Evans <dje@google.com>
3038
3039 * buildsym.c (end_symtab_1): Split it to ...
3040 (end_symtab_get_static_block): ... this ...
3041 (end_symtab_from_static_block): ... and this function.
3042 (end_symtab, end_expandable_symtab): Call them.
3043 * buildsym.h (end_symtab_get_static_block)
3044 (end_symtab_from_static_block): New declarations.
3045 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3046 Set its valid CU ranges.
3047
a24f71ab
JK
30482012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3049
3050 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3051 DW_OP_GNU_parameter_ref.
3052
d76b7dbc
JK
30532012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3056 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3057
9fdc877b
DE
30582012-07-13 Doug Evans <dje@google.com>
3059
3060 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3061 (filename_seen_cache): New struct.
3062 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3063 (create_filename_seen_cache): New function.
3064 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3065 (filename_seen): Delete arg "first". New arg "cache". All callers
3066 updated.
3067 (output_source_filename_data): New struct.
3068 (output_source_filename): Delete arg "first". New arg "data".
3069 All callers updated.
3070 (sources_info): Delete local "first". New locals "data", "cleanups".
3071 Rewrite to use filename_seen_cache.
3072 (add_partial_filename_data): Delete member "first". New member
3073 "filename_seen_cache". All uses updated.
3074 (make_source_files_completion_list): Rewrite to use
3075 filename_seen_cache.
3076
f80c6f3f
DE
30772012-07-12 Doug Evans <dje@google.com>
3078
3079 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3080
0bfa869d
DE
30812012-07-10 Doug Evans <dje@google.com>
3082
f4dc4d17
DE
3083 PR gdb/13498
3084 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3085 all_type_unit_groups, type_unit_groups, tu_stats.
3086 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3087 All uses updated. Add type_unit_group to union "s".
3088 (type_unit_group): New struct.
3089 (IS_TYPE_UNIT_GROUP): New macro.
3090 (abbrev_table): Delete unused member "section".
3091 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3092 (dw2_get_cu): Assert not used with type_unit_group.
3093 (dw2_get_primary_cu): New function.
3094 (dw2_build_type_unit_groups_reader): New function.
3095 (dw2_build_type_unit_groups): New function.
3096 (dw2_get_file_names): Assert not called on type units.
3097 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3098 Redo loop to iterate over type unit groups instead of type units.
3099 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3100 (read_abbrev_offset): New function.
3101 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3102 updated.
3103 (create_partial_symtab): New function.
3104 (process_psymtab_comp_unit_reader): Assert not used with type units.
3105 Call create_partial_symtab.
3106 (process_psymtab_type_unit): Delete.
3107 (hash_type_unit_group, eq_type_unit_group): New functions.
3108 (allocate_type_unit_groups_table): New function.
3109 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3110 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3111 (create_type_unit_group, get_type_unit_group): New functions.
3112 (tu_abbrev_offset): New struct.
3113 (sort_tu_by_abbrev_offset): New function.
3114 (add_type_unit_group_to_table): New function.
3115 (build_type_unit_groups): New function.
3116 (build_type_psymtabs_reader): New function.
3117 (build_type_psymtab_dependencies): New function.
3118 (build_type_psymtabs): Rewrite.
3119 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3120 is seen in a type unit.
3121 (process_queue): Move symtab expansion debugging printfs here.
3122 Call process_full_type_unit for type units.
3123 (compute_symtab_includes): Assert not called for type units.
3124 (process_cu_includes): Don't call compute_symtab_includes for
3125 type units.
3126 (process_full_type_unit): New function.
3127 (process_imported_unit_die): Flag an error if called for type units.
3128 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3129 updated. Assert not called for type units.
3130 (read_file_scope): Call dwarf2_start_symtab.
3131 (setup_type_unit_groups): New function.
3132 (read_type_unit_scope): Rewrite.
3133 (abbrev_table_read_table): Initialize abbrev_table->offset.
3134 (abbrev_table_free_cleanup): New function.
3135 (dwarf2_start_symtab): New function.
3136 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3137 * buildsym.c (finish_block_internal): New arg "expandable".
3138 All callers updated.
3139 (start_symtab): Move most contents to ...
3140 (restart_symtab): ... here. New function.
3141 (reset_symtab_globals): New function.
3142 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3143 Call reset_symtab_globals.
3144 (end_symtab, end_expandable_symtab): New functions.
3145 (set_missing_symtab, augment_type_symtab): New functions.
3146 * buildsym.h (end_expandable_symtab): Declare.
3147 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3148 * psympriv.h (struct partial_symtab): New member "anonymous".
3149 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3150 anonymous psymtabs.
3151 (read_psymtabs_with_filename): Ditto.
3152 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3153 (expand_symtabs_matching_via_partial): Ditto.
3154 (dump_psymtab): Update.
0bfa869d
DE
3155 * dictionary.c (dict_add_pending): New function.
3156 * dictionary.h (dict_add_pending): Declare.
3157
45e58e77
DE
31582012-07-09 Doug Evans <dje@google.com>
3159
b74db436
DE
3160 * buildsym.c (start_subfile): Remove unnecessary check for
3161 name == NULL.
3162
fd55216c
DE
3163 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3164
6721b2ec
DE
3165 * dwarf2read.c (load_full_type_unit): Simplify.
3166
b4dd5633
DE
3167 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3168 to struct signatured_type **. All uses updated.
3169
45e58e77
DE
3170 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3171 All callers updated.
3172
e314d629
TT
31732012-07-09 Tom Tromey <tromey@redhat.com>
3174
3175 * c-exp.y (check_parameter_typelist): New function.
3176 (parameter_typelist): Call it.
3177 * eval.c (make_params): Handle '(void)' case.
3178 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3179 '(void)' case.
3180
aa7c7447
JK
31812012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3182
3183 * common/linux-ptrace.c: Include gdb_assert.h.
3184 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3185 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3186 stdint.h.
3187 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3188 functions.
3189 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3190 * linux-nat.c (linux_child_post_attach)
3191 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3192
889003ed
JK
31932012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3196 nptl <2.7 bug workaround for core files.
3197
da559b09
JK
31982012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3201 clearing.
3202 (save_siginfo): Remove.
3203 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3204 call.
3205 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3206 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3207 * linux-nat.h (struct lwp_info): Remove field siginfo.
3208
f865ee35
JK
32092012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Code cleanup for the next patch.
3212 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3213 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3214 call for it.
3215 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3216 (ia64_linux_stopped_data_address):
3217 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3218 the return value.
3219 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3220 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3221 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3222 call for it.
3223
76b83c51
JK
32242012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 PR 14321
3227 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3228 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3229
a6fb9c08
TT
32302012-07-06 Tom Tromey <tromey@redhat.com>
3231
3232 * c-exp.y (DOTDOTDOT): New token.
3233 (func_mod, exp): Use parameter_typelist.
3234 (parameter_typelist): New production.
3235 (tokentab3): Add "..." token.
3236 * eval.c (make_params): Handle varargs.
3237 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3238 varargs.
3239
71918a86
TT
32402012-07-06 Tom Tromey <tromey@redhat.com>
3241
3242 PR exp/9608:
3243 * c-exp.y (%union) <tvec>: Change type.
3244 (func_mod): Now uses <tvec> type.
3245 (exp): Update for tvec change.
3246 (direct_abs_decl): Push the typelist.
3247 (func_mod): Return a typelist.
3248 (nonempty_typelist): Update for tvec change.
3249 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3250 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3251 * parse.c (pop_type_list): New function.
3252 (push_typelist): New function.
3253 (follow_types): Handle tp_function_with_arguments.
3254 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3255 (enum type_pieces) <tp_function_with_arguments>: New constant.
3256 (union type_stack_elt) <typelist_val>: New field.
3257 (push_typelist): Declare.
3258
fcde5961
TT
32592012-07-06 Tom Tromey <tromey@redhat.com>
3260
3261 * c-exp.y (%union) <type_stack>: New field.
3262 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3263 (ptr_operator_ts): New production.
3264 (ptype): Update.
3265 * parse.c (type_stack_reserve): New function.
3266 (check_type_stack_depth): Use it.
3267 (pop_type_stack, append_type_stack, push_type_stack)
3268 (get_type_stack, type_stack_cleanup): New functions.
3269 (follow_types): Handle tp_type_stack.
3270 (_initialize_parse): Simplify initialization.
3271 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3272 constant.
3273 (union type_stack_elt) <stack_val>: New field.
3274 (get_type_stack, append_type_stack, push_type_stack)
3275 (type_stack_cleanup): Declare.
3276
1a7d0ce4
TT
32772012-07-06 Tom Tromey <tromey@redhat.com>
3278
3279 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3280 Remove.
3281 (struct type_stack): New.
3282 * parse.c (type_stack, type_stack_size, type_stack_depth):
3283 Remove.
3284 (type_stack): New global.
3285 (parse_exp_in_context, check_type_stack_depth)
3286 (insert_into_type_stack, insert_type, push_type, push_type_int)
3287 (insert_type_address_space, pop_type, pop_type_int)
3288 (_initialize_parse): Update.
3289
16d01384
TT
32902012-07-06 Tom Tromey <tromey@redhat.com>
3291
3292 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3293 Remove %type.
3294
9bfc60bf
SP
32952012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3296
3297 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3298
d5161074
SP
32992012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3300 Jan Kratochvil <jan.kratochvil@redhat.com>
3301
3302 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3303 alloca with xmalloc/xfree.
3304
a74bc576
SP
33052012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3306
3307 * MAINTAINERS (Write After Approval): Add myself to the list.
3308
667e0a4b
DE
33092012-07-05 Doug Evans <dje@google.com>
3310
3311 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3312
34b536a8
HZ
33132012-07-05 Hui Zhu <hui_zhu@mentor.com>
3314
3315 * ax-gdb.c (cli/cli-utils.h): New include.
3316 (linespec.h): Ditto.
3317 (agent_eval_command_one): New function.
3318 (agent_command_1): Ditto.
3319 (agent_command): Call function agent_command_1.
3320 (agent_eval_command): Ditto.
3321 (_initialize_ax_gdb): Change help for "maint agent"
3322 and "maint agent-eval".
3323
e6f0bce7
HZ
33242012-07-05 Hui Zhu <hui_zhu@mentor.com>
3325
3326 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3327 * cli/cli-utils.c (check_for_argument): New function.
3328 * cli/cli-utils.h (check_for_argument): Ditto.
3329
1b3371b1
L
33302012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3331
3332 * NEWS: Mention x32 ABI support.
3333
23e2d720
L
33342012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3335
3336 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3337 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3338
3339 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3340 and pc_regnum_from_eax to -1. Update SP regnum from
3341 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3342 needed.
3343
3344 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3345 pc_regnum_from_eax.
3346
836bf454
JK
33472012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3348
3349 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3350 * dwarf2expr.h: Include gdbtypes.h.
3351 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3352 these forward declarations.
3353 (cu_offset, sect_offset): Move these ...
3354 * gdbtypes.h: Remove include dwarf2expr.h.
3355 (cu_offset, sect_offset): ... here.
3356
1e55e04f
L
33572012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3358
3359 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3360 (amd64_linux_sigtramp_code): This.
3361 (amd64_x32_linux_sigtramp_code): New.
3362 (LINUX_SIGTRAMP_LEN): Updated.
3363 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3364
7d0e21ad
JK
33652012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3366
3367 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3368
8775fd2d
JK
33692012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * config.in: Regenerate.
3372 * configure: Regenerate.
3373 * configure.ac: Remove check for gnu/libc-version.h.
3374 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3375 gnu/libc-version.h.
3376 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3377 variables libc_version, libc_major and libc_minor. Replace sscanf by
3378 inferior_has_bug. Extend the comment.
3379
fcb44371
JK
33802012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3381
3382 * linux-thread-db.c (inferior_has_bug): New function.
3383 (thread_db_find_new_threads_silently): Return boolean as checked by
3384 inferior_has_bug, describe it in the comments.
3385 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3386 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3387 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3388 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3389 if UNTIL_NO_NEW,
3390
09406207
DE
33912012-07-02 Doug Evans <dje@google.com>
3392
0907af0c
DE
3393 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3394 related to queue management.
3395
09406207
DE
3396 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3397 instead of "debug dwarf2-die" in debugging printfs.
3398 (create_debug_info_hash_table_reader): Ditto.
3399 (create_debug_info_hash_table): Ditto.
3400 (init_dwo_file): Ditto.
3401 (init_cutu_and_read_dies): Add debugging printf.
3402 (init_cutu_and_read_dies_no_follow): Ditto.
3403 (process_psymtab_comp_unit_reader): Ditto.
3404
d3ce09f5
SS
34052012-07-02 Stan Shebs <stan@codesourcery.com>
3406
3407 Add target-side support for dynamic printf.
3408 * NEWS: Mention the additional style.
3409 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3410 (struct bp_location): New field cmd_bytecode.
3411 * breakpoint.c: Include format.h.
3412 (disconnected_dprintf): New global.
3413 (parse_cmd_to_aexpr): New function.
3414 (build_target_command_list): New function.
3415 (insert_bp_location): Call it.
3416 (remove_breakpoints_pid): Skip dprintf breakpoints.
3417 (print_one_breakpoint_location): Ditto.
3418 (dprintf_style_agent): New global.
3419 (dprintf_style_enums): Add dprintf_style_agent.
3420 (update_dprintf_command_list): Add agent case.
3421 (agent_printf_command): New function.
3422 (_initialize_breakpoint): Add new commands.
3423 * common/ax.def (printf): New bytecode.
3424 * ax.h (ax_string): Declare.
3425 * ax-gdb.h (gen_printf): Declare.
3426 * ax-gdb.c: Include cli-utils.h, format.h.
3427 (gen_printf): New function.
3428 (maint_agent_print_command): New function.
3429 (_initialize_ax_gdb): Add maint agent-printf command.
3430 * ax-general.c (ax_string): New function.
3431 (ax_print): Add printf disassembly.
3432 * Makefile.in (SFILES): Add format.c
3433 (COMMON_OBS): Add format.o.
3434 * common/format.h: New file.
3435 * common/format.c: New file.
3436 * printcmd.c: Include format.h.
3437 (ui_printf): Call parse_format_string.
3438 * remote.c (remote_state): New field breakpoint_commands.
3439 (PACKET_BreakpointCommands): New enum.
3440 (remote_breakpoint_commands_feature): New function.
3441 (remote_protocol_features): Add new BreakpointCommands entry.
3442 (remote_can_run_breakpoint_commands): New function.
3443 (remote_add_target_side_commands): New function.
3444 (remote_insert_breakpoint): Call it.
3445 (remote_insert_hw_breakpoint): Ditto.
3446 (_initialize_remote): Add new packet configuration for
3447 target-side breakpoint commands.
3448 * target.h (struct target_ops): New field
3449 to_can_run_breakpoint_commands.
3450 (target_can_run_breakpoint_commands): New macro.
3451 * target.c (update_current_target): Handle
3452 to_can_run_breakpoint_commands.
3453
2d7b58e8
JK
34542012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3455
3456 Execute -ix and -iex only after system and user gdbinit files.
3457 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3458 processing down after gdbinit files.
3459
8690e634
JK
34602012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 Add fnmatch-gnu module.
3463 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3464 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3465 * gnulib/aclocal.m4: Regenerate.
3466 * gnulib/config.in: Regenerate.
3467 * gnulib/configure: Regenerate.
3468 * gnulib/import/dummy.c: Remove.
3469 * gnulib/import/Makefile.am: Regenerate.
3470 * gnulib/import/Makefile.in: Likewise.
3471 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3472 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3473 * gnulib/import/alloca.c: New file.
3474 * gnulib/import/alloca.in.h: Likewise.
3475 * gnulib/import/config.charset: Likewise.
3476 * gnulib/import/fnmatch.c: Likewise.
3477 * gnulib/import/fnmatch.in.h: Likewise.
3478 * gnulib/import/fnmatch_loop.c: Likewise.
3479 * gnulib/import/localcharset.c: Likewise.
3480 * gnulib/import/localcharset.h: Likewise.
3481 * gnulib/import/m4/alloca.m4: Likewise.
3482 * gnulib/import/m4/codeset.m4: Likewise.
3483 * gnulib/import/m4/configmake.m4: Likewise.
3484 * gnulib/import/m4/fcntl-o.m4: Likewise.
3485 * gnulib/import/m4/fnmatch.m4: Likewise.
3486 * gnulib/import/m4/glibc21.m4: Likewise.
3487 * gnulib/import/m4/localcharset.m4: Likewise.
3488 * gnulib/import/m4/locale-fr.m4: Likewise.
3489 * gnulib/import/m4/locale-ja.m4: Likewise.
3490 * gnulib/import/m4/locale-zh.m4: Likewise.
3491 * gnulib/import/m4/mbrtowc.m4: Likewise.
3492 * gnulib/import/m4/mbsinit.m4: Likewise.
3493 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3494 * gnulib/import/m4/mbstate_t.m4: Likewise.
3495 * gnulib/import/m4/stdbool.m4: Likewise.
3496 * gnulib/import/m4/wchar_h.m4: Likewise.
3497 * gnulib/import/m4/wctype_h.m4: Likewise.
3498 * gnulib/import/m4/wint_t.m4: Likewise.
3499 * gnulib/import/mbrtowc.c: Likewise.
3500 * gnulib/import/mbsinit.c: Likewise.
3501 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3502 * gnulib/import/mbsrtowcs-state.c: Likewise.
3503 * gnulib/import/mbsrtowcs.c: Likewise.
3504 * gnulib/import/ref-add.sin: Likewise.
3505 * gnulib/import/ref-del.sin: Likewise.
3506 * gnulib/import/stdbool.in.h: Likewise.
3507 * gnulib/import/streq.h: Likewise.
3508 * gnulib/import/strnlen1.c: Likewise.
3509 * gnulib/import/strnlen1.h: Likewise.
3510 * gnulib/import/verify.h: Likewise.
3511 * gnulib/import/wchar.in.h: Likewise.
3512 * gnulib/import/wctype.in.h: Likewise.
3513
202cbf1c
JK
35142012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3515
3516 Support shell wildcards for 'set auto-load safe-path'.
3517 * auto-load.c: Include fnmatch.h.
3518 (filename_is_in_dir): Rename to ...
3519 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3520 it. Update function comment. Rename dir_len to pattern_len. New
3521 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3522 messages. Use gdb_filename_fnmatch.
3523 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3524 pattern.
3525 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3526 * defs.h (gdb_filename_fnmatch): New declaration.
3527 * utils.c: Include fnmatch.h.
3528 (gdb_filename_fnmatch): New function.
3529
fb7b5af4
SDJ
35302012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3531
3532 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3533 `-probe' and `-probe-stap' options.
3534
72d0e2c5
YQ
35352012-07-01 Yao Qi <yao@codesourcery.com>
3536
3537 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3538 always_inserted_off, and always_inserted_enums.
3539 Change always_inserted_mode's type to 'enum auto_boolean'.
3540 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3541 callers.
3542 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3543 of add_setshow_enum_cmd.
3544 * infrun.c: Remove can_use_displaced_stepping_auto,
3545 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3546 can_use_displaced_stepping_enum.
3547 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3548 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3549 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3550 add_setshow_enum_cmd.
3551
42e7ad6c
DE
35522012-06-30 Doug Evans <dje@google.com>
3553
3554 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3555 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3556 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3557
39cf75f7
DE
35582012-06-29 Doug Evans <dje@google.com>
3559
3560 * linespec.c: #include "stack.h".
3561 (decode_line_with_current_source): Moved here from symtab.c and
3562 renamed from decode_line_spec. All callers updated.
3563 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3564 renamed from decode_line_spec_1. All callers updated.
3565 * linespec.h (decode_line_with_current_source): Move declaration here
3566 from symtab.h and renamed from decode_line_spec.
3567 (decode_line_with_last_displayed): Move declaration here from symtab.h
3568 and renamed from decode_line_spec_1.
3569 * macrocmd.c: #include "linespec.h".
3570 * symtab.c: Remove #include "linespec.h".
3571
433df2d4
DE
35722012-06-28 Doug Evans <dje@google.com>
3573
1ce1cefd
DE
3574 * dwarf2read.c (get_cu_length): New function.
3575 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3576 (create_debug_types_hash_table): Ditto.
3577 (init_cutu_and_read_dies): Ditto.
3578 (init_cutu_and_read_dies_no_follow): Ditto.
3579
3b80fe9b
DE
3580 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3581
433df2d4
DE
3582 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3583 (struct abbrev_table): Define.
3584 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3585 abbrev_table.
3586 (init_cutu_and_read_dies): Update.
3587 (abbrev_table_alloc_abbrev): New function. Replaces
3588 dwarf_alloc_abbrev. All callers updated.
3589 (abbrev_table_add_abbrev): New function.
3590 (abbrev_table_lookup_abbrev): New function. Replaces
3591 dwarf2_lookup_abbrev. All callers updated.
3592 (abbrev_table_read_table): New function. Contents moved here from
3593 dwarf2_read_abbrevs.
3594 (dwarf2_read_abbrevs): Call it.
3595 (abbrev_table_free): New function.
3596 (dwarf2_free_abbrev_table): Call it.
3597
71caed83
SS
35982012-06-28 Stan Shebs <stan@codesourcery.com>
3599
3600 * osdata.c (info_osdata_command): Filter out "Title" columns
3601 from non-MI uses.
3602 * common/linux-osdata.c (struct osdata_type): Add title field.
3603 (osdata_table): Add titles to each entry.
3604 (linux_command_xfer_osdata): Add a column for title data.
3605
37ce89eb
SS
36062012-06-28 Stan Shebs <stan@codesourcery.com>
3607
3608 Make logging work for MI.
3609 * NEWS: Mention it.
3610 * interps.h (interp_set_logging_ftype): New typedef.
3611 (struct interp_procs): New field set_logging_proc.
3612 (current_interp_set_logging): Declare.
3613 * interps.c (current_interp_set_logging): New function.
3614 * cli/cli-logging.c: Include interps.h.
3615 (set_logging_redirect): Call current_interp_set_logging.
3616 (pop_output_files): Ditto.
3617 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3618 * mi/mi-console.h (mi_console_set_raw): Declare.
3619 * mi/mi-console.c (mi_console_set_raw): New function.
3620 * mi/mi-interp.c (saved_raw_stdout): New global.
3621 (mi_set_logging): New function.
3622 (_initialize_mi_interp): Add it to interp procs.
3623
659c9f3a
DE
36242012-06-28 Doug Evans <dje@google.com>
3625
a743abeb
DE
3626 * symtab.c (lookup_symbol_aux_objfile): Use
3627 ALL_OBJFILE_PRIMARY_SYMTABS.
3628
659c9f3a
DE
3629 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3630
da2d6d3d
JK
36312012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * common/buffer.c: Include inttypes.h and stdint.h.
3634 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3635
e5ef252a
PA
36362012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3637 Pedro Alves <palves@redhat.com>
3638
3639 * gdbthread.h (ALL_THREADS): New macro.
3640 (thread_list): Declare.
3641 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3642 going, but instead fall through to the stepping handling.
3643 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3644 the passed in signal. Adjust debug output.
3645 (resume_callback): Rename to ...
3646 (linux_nat_resume_callback): ... this. Pass the thread's last
3647 stop signal, if in "pass" state.
3648 (linux_nat_resume): Adjust to rename.
3649 (stop_wait_callback): New assertion. Don't respawn signals;
3650 instead let the LWP remain with SIGNALLED set.
3651 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3652 * remote.c (append_pending_thread_resumptions): New.
3653 (remote_vcont_resume): Call it.
3654 * target.h (target_resume): Extend comment.
3655
1d7975eb
IS
36562012-06-28 Iain Sandoe <iain@codesourcery.com>
3657
3658 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3659
2e3cf129
DE
36602012-06-27 Doug Evans <dje@google.com>
3661
3662 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3663 Delete have_addr_base, unused. All uses updated.
3664 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3665 (dwarf2_get_pc_bounds): Add ranges_base.
3666 (dwarf2_record_block_ranges): Ditto.
3667
1bb9788d
TT
36682012-06-27 Tom Tromey <tromey@redhat.com>
3669
3670 PR macros/7961:
3671 * varobj.c (varobj_create): Update.
3672 (varobj_set_value): Update.
3673 * tracepoint.c (validate_actionline): Update.
3674 (encode_actions_1): Update.
3675 * parse.c (parse_exp_1): Add 'pc' argument.
3676 (parse_exp_in_context): Add 'pc' argument. Change how
3677 expression_context_pc is set.
3678 (parse_expression): Update.
3679 (parse_field_expression): Update.
3680 * expression.h (parse_exp_1): Update.
3681 * eval.c (parse_to_comma_and_eval): Update.
3682 * breakpoint.c (set_breakpoint_condition): Update.
3683 (update_watchpoint): Update.
3684 (init_breakpoint_sal): Update
3685 (find_condition_and_thread): Update.
3686 (watch_command_1): Update.
3687 (update_breakpoint_locations): Update.
3688 * ada-lang.c (ada_read_renaming_var_value): Update.
3689 (create_excep_cond_exprs): Update.
3690
0bc3a05c
DE
36912012-06-27 Doug Evans <dje@google.com>
3692
3693 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3694 type units.
3695
4bdcc0c1
DE
36962012-06-26 Doug Evans <dje@google.com>
3697
3698 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3699 prototype.
3700 (error_check_comp_unit_head): New arg abbrev_section. All callers
3701 updated.
3702 (read_and_check_comp_unit_head): Ditto.
3703 (read_and_check_type_unit_head): Ditto.
3704
ee0bf529
SCR
37052012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3706
3707 New attribute 'last' for gdb.Symtab_and_line.
3708 * NEWS (Python Scripting): Add entry about the new attribute.
3709 * python/py-symtab.c (salpy_get_last): New function which
3710 implements the get method for the 'last' attribute of
3711 gdb.Symtab_and_line.
3712 (sal_object_getset): Add entry for the 'last' attribute.
3713
1c658ad5
DE
37142012-06-26 Doug Evans <dje@google.com>
3715
09262596
DE
3716 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3717 (dwo_sections): Add macinfo, macro.
3718 (dwarf2_locate_dwo_sections): Watch for macro sections.
3719 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3720 All callers updated. Handle DWO files.
3721
45cfd468
DE
3722 * NEWS: Mention new options "set debug dwarf2-read" and
3723 "set debug symtab-create".
3724 * dwarf2read.c (dwarf2_read_debug): New static global.
3725 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3726 (process_queue): Ditto.
3727 (process_full_comp_unit): Ditto.
3728 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3729 * elfread.c (elf_symfile_read): Add debugging printf.
3730 * minsyms.c (install_minimal_symbols): Ditto.
3731 * psymtab.c (allocate_psymtab): Ditto.
3732 * symfile.c (allocate_symtab): Ditto.
3733 * symtab.c (symtab_create_debug): New global.
3734 (_initialize_symtab): Add new option "set debug symtab-create".
3735 * symtab.h (symtab_create_debug): Declare.
3736
1c658ad5
DE
3737 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3738 (lookup_dwo_type_unit): Ditto.
3739
6fea9e18
L
37402012-06-26 Roland McGrath <roland@hack.frob.com>
3741 H.J. Lu <hongjiu.lu@intel.com>
3742
3743 * amd64-linux-nat.c: Include <sys/user.h>.
3744 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3745 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3746 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3747
3748 * configure.ac: Check if the fs_base and gs_base members of
3749 `struct user_regs_struct' exist.
3750 * config.in: Regenerated.
3751 * configure: Likewise.
3752
adb4fe3b
ME
37532012-06-25 Michael Eager <eager@eagercon.com>
3754
3755 PR python/14291
f782ad9b 3756 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3757
fc51cce1
MGD
37582012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3759
3760 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3761 register as a stack alignment in ARM mode.
3762
40a73391
JK
37632012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3766 * gnulib/config.in: Regenerate.
3767 * gnulib/configure: Likewise.
3768 * gnulib/import/m4/extensions.m4: Update it.
3769 * gnulib/import/m4/gnulib-common.m4: Likewise.
3770 * gnulib/import/m4/memmem.m4: Likewise.
3771 * gnulib/import/m4/mmap-anon.m4: Likewise.
3772 * gnulib/import/m4/multiarch.m4: Likewise.
3773 * gnulib/import/stdint.in.h: Likewise.
3774
972daa01
YQ
37752012-06-24 Yao Qi <yao@codesourcery.com>
3776
3777 * corefile.c (write_memory_with_notification): New.
3778 * gdbcore.h: Declare write_memory_with_notification.
3779 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3780 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3781 * valops.c (value_assign): Likewise.
3782 * python/py-inferior.c (infpy_write_memory): Call
3783 'write_memory_with_notification'.
3784
8d6e0714
JK
37852012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 * cc-with-index.sh: Use also -ex "set auto-load no".
3788
156942c7
DE
37892012-06-23 Doug Evans <dje@google.com>
3790
3791 PR 14125
3792 * NEWS: Document additions to .gdb_index.
3793 * dwarf2read.c: #include "gdb/gdb-index.h".
3794 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3795 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3796 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3797 (dwarf2_read_index): Recognize version 7.
3798 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3799 block_kind, domain): All callers updated.
3800 (dw2_find_symbol_file): Handle new index CU values.
3801 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3802 (add_index_entry): New args is_static, kind. All callers updated.
3803 (offset_type_compare, uniquify_cu_indices): New functions
3804 (symbol_kind): New function.
3805 (write_psymtabs_to_index): Remove duplicate CU values.
3806 (write_psymtabs_to_index): Write .gdb_index version 7.
3807
352b3eda
JB
38082012-06-22 Joel Brobecker <brobecker@adacore.com>
3809
3810 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3811 * configure: Regenerate.
3812
2678e2af
YQ
38132012-06-20 Yao Qi <yao@codesourcery.com>
3814
3815 * python/py-inferior.c: Update comments of infpy_read_memory
3816 and infpy_write_memory.
3817
95c391b6
TT
38182012-06-19 Tom Tromey <tromey@redhat.com>
3819
3820 PR exp/9514:
3821 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3822 (push_type_address_space): Remove.
3823 * parse.c (insert_into_type_stack): New function.
3824 (insert_type): Likewise.
3825 (insert_type_address_space): Rename from push_type_address_space.
3826 Insert tp_space_identifier.
3827 * c-exp.y (ptr_operator): New production.
3828 (abs_decl): Use ptr_operator.
3829 (space_identifier): Call insert_type_address_space.
3830 (ptype): Don't use const_or_volatile_or_space_identifier.
3831 (const_or_volatile_noopt): Call insert_type.
3832 (conversion_type_id, conversion_declarator): New productions.
3833 (operator): Use conversion_type_id.
3834
6ac9ef80
DE
38352012-06-18 Doug Evans <dje@google.com>
3836
422d65e7
DE
3837 * symtab.h (minimal_symbol): New member created_by_gdb.
3838 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3839 created by gdb.
3840 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3841 (search_symbols): Call it instead of lookup_symbol.
3842 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3843
49f6c839
DE
3844 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3845 Adjust address for DW_OP_GNU_addr_index.
3846 * dwarf2expr.h (dwarf_expr_context): Update comment.
3847 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3848 all callers updated. Handle TLS vars described with
3849 DW_OP_GNU_const_index.
3850 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3851 and DW_OP_GNU_const_index.
3852 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3853
6ac9ef80
DE
3854 * block.c (find_block_in_blockvector): Make explicit the fact that we
3855 ignore GLOBAL_BLOCK.
3856
4cd18215
TT
38572012-06-18 Tom Tromey <tromey@redhat.com>
3858
3859 * c-exp.y (operator): Remove trailing space after "delete" and
3860 "delete[]".
3861
a9b8d892
JK
38622012-06-18 Mark Kettenis <kettenis@gnu.org>
3863 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 Switch i386 and derived targets to ON_STACK.
3866 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3867 (amd64_dicos_init_abi): Remove its installment.
3868 * dicos-tdep.c (dicos_init_abi): Remove the
3869 set_gdbarch_call_dummy_location call. Update the comment here.
3870 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3871 (i386_dicos_init_abi): Remove its installment.
3872 * i386-tdep.c (i386_push_dummy_code): New function.
3873 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3874 i386_push_dummy_code.
3875
e2e4d78b
JK
38762012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3877
3878 Remove stale dummy frames.
3879 * breakpoint.c: Include dummy-frame.h.
3880 (longjmp_breakpoint_ops): New variable.
3881 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3882 bp_longjmp_call_dummy.
3883 (bpstat_what, bptype_string, print_one_breakpoint_location)
3884 (init_bp_location): Support bp_longjmp_call_dummy.
3885 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3886 (set_longjmp_breakpoint_for_call_dummy)
3887 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3888 functions.
3889 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3890 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3891 FIXME comment and extend the other comment for bp_call_dummy.
3892 (set_longjmp_breakpoint_for_call_dummy)
3893 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3894 * dummy-frame.c: Include gdbthread.h.
3895 (pop_dummy_frame_bpt): New function.
3896 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3897 (dummy_frame_discard): New function.
3898 (cleanup_dummy_frames): Update the comment about longjmps.
3899 * dummy-frame.h (dummy_frame_discard): New declaration.
3900 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3901 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3902 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3903 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3904 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3905 keep_going if IS_LONGJMP and there is no other reason to stop.
3906
09d5912c
TT
39072012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3908
3909 * remote-sim.c (sim_command_completer): Initialize
3910 variable 'result'.
3911
1788b2d3
JK
39122012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3913
3914 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3915 * dwarf2loc.c (call_site_parameter_matches): Support
3916 CALL_SITE_PARAMETER_PARAM_OFFSET.
3917 (needs_dwarf_reg_entry_value): Push stub value.
3918 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3919 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3920 * gdbtypes.h (enum call_site_parameter_kind): New item
3921 CALL_SITE_PARAMETER_PARAM_OFFSET.
3922 (struct call_site.parameter.u): New field param_offset.
3923
24c5c679
JK
39242012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 Code cleanup: Generalize call_site.parameter key.
3927 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3928 variable dwarf_reg. New variable kind_u. Update parameters to
3929 push_dwarf_reg_entry_value.
3930 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3931 * dwarf2expr.h (enum call_site_parameter_kind)
3932 (union call_site_parameter_u): Forward declarations.
3933 (struct dwarf_expr_context_funcs): Update parameters and their
3934 description for push_dwarf_reg_entry_value.
3935 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3936 * dwarf2loc.c (call_site_parameter_matches): New function.
3937 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3938 description. Use call_site_parameter_matches.
3939 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3940 Update parameters and their description.
3941 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3942 New variable kind_u. Adjust the caller for updated parameters.
3943 (needs_dwarf_reg_entry_value): Update parameters.
3944 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3945 instead of attr. Update for the changed fields of struct
3946 call_site_parameter.
3947 * gdbtypes.h: Include dwarf2expr.h.
3948 (enum call_site_parameter_kind): New.
3949 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3950 fb_offset into new union u.
3951
ac142d96
L
39522012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3953
3954 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3955 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3956 for x32.
3957
ba224c70
L
39582012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * amd64-linux-nat.c (compat_x32_clock_t): New.
3961 (compat_x32_siginfo_t): Likewise.
3962 (compat_x32_siginfo_from_siginfo): Likewise.
3963 (siginfo_from_compat_x32_siginfo): Likewise.
3964 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3965 and siginfo_from_compat_x32_siginfo for x32.
3966
7ecbc825
HZ
39672012-06-15 Hui Zhu <hui_zhu@mentor.com>
3968
3969 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3970
233dfcf0
L
39712012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3972
3973 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3974 instead of gdbarch_ptr_bit.
3975 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3976 (amd64_supply_native_gregset): Likewise.
3977 (amd64_collect_native_gregset): Likewise.
3978 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3979 (amd64_supply_xsave): Likewise.
3980 (amd64_collect_fxsave): Likewise.
3981 (amd64_collect_xsave): Likewise.
3982
6da38f42
L
39832012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3984
3985 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3986 (amd64_linux_read_description): Check DS segment register for
3987 x32 process.
3988
663b969e
TT
39892012-06-15 Tom Tromey <tromey@redhat.com>
3990
3991 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3992 init_cutu_and_read_dies.
3993
d6f05027
IS
39942012-06-15 Iain Sandoe <iain@codesourcery.com>
3995
3996 * MAINTAINERS (Write After Approval): Add myself to the list.
3997
6598ed07
TT
39982012-06-15 Tom Tromey <tromey@redhat.com>
3999
4000 * valops.c (value_find_oload_method_list): Now static.
4001 * value.h (value_find_oload_method_list): Don't declare.
4002
2b214ea6
TT
40032012-06-15 Tom Tromey <tromey@redhat.com>
4004
4005 * valops.c (find_overload_match): Use value_ind.
4006
a210c238
MR
40072012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4008
4009 * infrun.c (handle_inferior_event): Correct indentation.
4010
3771a44c
DE
40112012-06-14 Doug Evans <dje@google.com>
4012
4013 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4014 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4015 All uses updated.
4016 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4017 updated. Handle DEBUG_LOC_START_LENGTH.
4018 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4019 (loclist_describe_location): Ditto.
4020
1c5a993e
MR
40212012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4022
4023 PR backtrace/13866
4024 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4025 after hiding inline functions.
4026
0b155465
JB
40272012-06-13 Joel Brobecker <brobecker@adacore.com>
4028
4029 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4030 _initialize_inf_ttrace.
4031
45717bac
JB
40322012-06-13 Joel Brobecker <brobecker@adacore.com>
4033
4034 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4035 _initialize_hppa_hpux_nat.
4036
34370865
JB
40372012-06-13 Joel Brobecker <brobecker@adacore.com>
4038
4039 * remote-sim.c (sim_command_completer): Change type of return
4040 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4041
284c5a60
MK
40422012-06-13 Mark Kettenis <kettenis@gnu.org>
4043 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 PR tdep/14222
4046 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4047 stack on a 16-byte boundary.
4048
2535757a
TT
40492012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4050
4051 * jit.c (finalize_symtab): Set function's return type to 'void' by
4052 default.
4053
fff4548b
MK
40542012-06-13 Mark Kettenis <kettenis@gnu.org>
4055 H.J. Lu <hongjiu.lu@intel.com>
4056
5a83521a
MK
4057 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4058 Move bits common to both the classic LP64 and the new x32 ILP32
4059 ABI here.
4060 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4061 (amd64_x32_linux_init_abi): New function.
4062 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4063 subtype.
4064
fff4548b
MK
4065 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4066 * i386-tdep.c (i386_pseudo_register_name): Make public.
4067 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4068 * amd64-tdep.c (amd64_dword_names): Add "eip".
4069 (amd64_x32_pseudo_register_type): New function
4070 (amd64_x32_init_abi): New function.
4071
dd80ea3c
JK
40722012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4073
4074 PR build/14003
4075 * inferior.h (struct inferior_suspend_state): Comment out.
4076 (struct inferior): Comment out the field suspend.
4077 * infrun.c (struct infcall_suspend_state): Comment out the field
4078 inferior_suspend.
4079 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4080 out its assignment.
4081
50af5481
JK
40822012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4085 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4086 function comment. Return ERROR for unresolved cases. Implement
4087 returning proper NAME.
4088 (yylex): Accept also NAME from classify_inner_name.
4089 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4090 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4091 LOC_TYPEDEF type.
4092 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4093
d55637df
TT
40942012-06-13 Tom Tromey <tromey@redhat.com>
4095
4096 * breakpoint.c (condition_completer): New function.
4097 (_initialize_breakpoint): Use it.
4098 * value.c (complete_internalvar): New function.
4099 * value.h (complete_internalvar): Declare.
4100
49c4e619
TT
41012012-06-13 Tom Tromey <tromey@redhat.com>
4102
4103 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4104 * breakpoint.c (catch_syscall_completer): Return a VEC.
4105 * cli/cli-cmds.c (complete_command): Update.
4106 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4107 (complete_on_enum): Likewise.
4108 * command.h: Include gdb_vecs.h.
4109 (completer_ftype): Change return type.
4110 (complete_on_cmdlist, complete_on_enum): Likewise.
4111 * completer.c (noop_completer, filename_completer)
4112 (location_completer): Return a VEC.
4113 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4114 to a VEC.
4115 (expression_completer, complete_line_internal, complete_line)
4116 (command_completer): Return a VEC.
4117 (gdb_completion_word_break_characters, line_completion_function):
4118 Update.
4119 * completer.h: Include gdb_vecs.h.
4120 (complete_line, noop_completer, filename_completer)
4121 (expression_completer, location_completer, command_completer):
4122 Update.
4123 * f-lang.c (f_word_break_characters): Return a VEC.
4124 * interps.c (interpreter_completer): Return a VEC.
4125 * language.h (struct language_defn)
4126 <la_make_symbol_completion_list>: Return a VEC.
4127 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4128 * symtab.c (free_completion_list): Take a VEC.
4129 (return_val_size, return_val_index): Remove.
4130 (return_val): Now a VEC.
4131 (completion_list_add_name): Update.
4132 (default_make_symbol_completion_list_break_on)
4133 (default_make_symbol_completion_list, make_symbol_completion_list)
4134 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4135 Return a VEC.
4136 (add_filename_to_list): Update.
4137 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4138 <list>: Now a VEC.
4139 (maybe_add_partial_symtab_filename): Update.
4140 (make_source_files_completion_list): Return a VEC.
4141 * symtab.h (default_make_symbol_completion_list_break_on)
4142 (default_make_symbol_completion_list, make_symbol_completion_list)
4143 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4144 (make_source_files_completion_list): Update.
4145
625e8578
TT
41462012-06-13 Tom Tromey <tromey@redhat.com>
4147
4148 * breakpoint.c (add_catch_command): Use completer_ftype.
4149 * breakpoint.h: Include command.h.
4150 (add_catch_command): Use completer_ftype.
4151 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4152 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4153 Use completer_ftype.
4154 * command.h (completer_ftype): New typedef.
4155 (set_cmd_completer): Use it.
4156 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4157 completer_ftype.
4158
5eb3b062
PA
41592012-06-13 Pedro Alves <palves@redhat.com>
4160
4161 Partial revert of previous change.
4162
4163 * serial.c (scb_base): New global.
4164 (serial_for_fd): New.
4165 (serial_open, serial_fdopen_ops): Link new serial in open serials
4166 chain.
4167 (do_serial_close): Unlink serial from the open serials chain.
4168
8b3ee56d
PA
41692012-06-12 Pedro Alves <palves@redhat.com>
4170
4171 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4172 threads here.
4173 (prepare_for_detach): No longer context switch here in non-stop
4174 mode.
4175 (fetch_inferior_event): Ditto.
4176 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4177 to the event thread before removing breakpoints. Switch to the
4178 event thread before inserting breakpoints and resuming.
4179 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4180 event thread before resuming.
4181 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4182 Switch to the event thread before removing breakpoints.
4183
5d60742e
EZ
41842012-06-12 Eli Zaretskii <eliz@gnu.org>
4185
4186 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4187 special characters correctly for the Windows shells. See
4188 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4189 report.
4190 [!__MINGW32__]: Remove extra double quote character from special
4191 characters.
4192
a6feecf7
SS
41932012-06-11 Stan Shebs <stan@codesourcery.com>
4194
4195 * ui-out.h: Remove #if 0 declarations.
4196 * ui-out.c: Remove #if 0 functions.
4197
ddefb60f
PA
41982012-06-11 Pedro Alves <palves@redhat.com>
4199
4200 * ser-base.c (run_async_handler_and_reschedule): New.
4201 (fd_event, push_event): Use it.
4202 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4203 reference count to 1.
4204 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4205 instead of xfree.
4206 (serial_is_open, serial_ref, serial_unref): New.
4207 * serial.h (serial_open): Adjust comment.
4208 (serial_is_open): Declare.
4209 (serial_close): Adjust comment.
4210 (serial_ref, serial_unref) Declare.
4211 (struct serial): New field 'refcnt'.
4212
d5ad6aa5
PA
42132012-06-11 Pedro Alves <palves@redhat.com>
4214
4215 Remove #if 0'd "connect" command, and unnecessary associated
4216 refcounting and serial reuse bits.
4217
4218 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4219 * serial.c (last_serial_opened): Delete.
4220 (scb_base): Delete.
4221 (serial_open): Adjust.
4222 (serial_for_fd): Delete.
4223 (serial_fdopen_ops, do_serial_close): Adjust.
4224 (serial_fdopen_ops): Adjust.
4225
318aa544
PA
42262012-06-11 Pedro Alves <palves@redhat.com>
4227
4228 * serial.c (do_serial_close): Remove early return when SCB is
4229 null.
4230
07261596
TT
42312012-06-11 Tom Tromey <tromey@redhat.com>
4232
4233 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4234
cc80f267
JK
42352012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4236
4237 Fix regression by the "ambiguous linespec" series.
4238 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4239 get_last_displayed_symtab and get_last_displayed_line and depending
4240 on CURSAL.
4241
356d9f9d
TT
42422012-06-11 Tom Tromey <tromey@redhat.com>
4243
4244 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4245 (dw2_find_symbol_file): Use it.
4246
232b8704
ME
42472012-06-11 Michael Eager <eager@eagercon.com>
4248
4249 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4250 * mips-linux-tdep.h (mips_signals): New
4251
e81a37f7
TT
42522012-06-11 Tom Tromey <tromey@redhat.com>
4253
4254 * infrun.c (handle_inferior_event)
4255 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4256 breakpoint.
4257 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4258 exception logic in all cases. Update comments.
4259 (insert_longjmp_resume_breakpoint): Set the exception resume
4260 breakpoint.
4261
2e81047f
MR
42622012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4263
4264 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4265
4e32eda7
SCR
42662012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4267
4268 * valarith.c (binop_types_user_defined_p): Fix a typo.
4269
18648a37 42702012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4271 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4272
4273 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4274 * arch-utils.h: Declare.
4275 * gdbarch.sh: Add return_in_first_hidden_param_p.
4276 * gdbarch.c, gdbarch.h: Regenerated.
4277 * infcall.c (call_function_by_hand): Call
4278 gdbarch_return_in_first_hidden_param_p instead of
4279 language_pass_by_reference.
4280
4281 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4282 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4283 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4284 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4285 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4286 `cplus_return_struct_by_reference'.
4287 (tic6x_return_value): Handle language cplusplus.
4288 (tic6x_return_in_first_hidden_param_p): New.
4289 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4290
034e5797
DE
42912012-06-07 Doug Evans <dje@google.com>
4292
4293 * dwarf2read.c (dwarf2_cu): Add comment.
4294
6a00aa1e
MR
42952012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4296
4297 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4298 variable.
4299 (mips_eabi_push_dummy_call): Likewise.
4300 (mips_n32n64_push_dummy_call): Likewise.
4301 (mips_o32_push_dummy_call): Likewise.
4302 (mips_o64_push_dummy_call): Likewise.
4303
eaa05d59
MR
43042012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4305
4306 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4307
de13fcf2
MR
43082012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4309
4310 * mips-tdep.c (mips_pseudo_register_type): Use
4311 mips_float_register_p.
4312
c3a01a22
PA
43132012-06-06 Pedro Alves <palves@redhat.com>
4314
4315 * infrun.c (handle_inferior_event): Remove calls to
4316 reinit_frame_cache that follow a context_switch call.
4317
d25f45d9
PA
43182012-06-06 Pedro Alves <palves@redhat.com>
4319
4320 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4321 context_switch and remove stale comment.
4322
359f5fe6
PA
43232012-06-06 Pedro Alves <palves@redhat.com>
4324
4325 * infrun.c (struct execution_control_state): Remove
4326 `new_thread_event' field.
4327 (handle_inferior_event): Simplify new threads handling; don't
4328 resume the inferior if we find a new thread.
4329
2d4c29c5
TS
43302012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4331
4332 * NEWS: Document the deprecation of SH's 'regs' command.
4333 * inferior.h (all_registers_info): Add function declaration.
4334 * sh-tdep.c (sh_show_regs): Remove variable.
4335 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4336 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4337 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4338 (sh_show_regs_command): Remove functions.
4339 (sh_gdbarch_init): Don't set sh_show_regs.
4340 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4341 'info all-registers'.
4342 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4343 (sh64_show_regs): Remove functions.
4344 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4345
f5f1cdb6
JK
43462012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4347
4348 * configure.ac: Move development=true below AC_INIT.
4349 * configure: Regenerate.
4350
bf6309af
SS
43512012-06-05 Stan Shebs <stan@codesourcery.com>
4352
4353 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4354 gdb_stdout.
4355
45aa4659
JK
43562012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4357
4358 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4359 argument as ssize_t.
4360 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4361 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4362 * target.c (target_read_stack, target_write_memory)
4363 (target_write_raw_memory): Likewise.
4364 * target.h (target_read_stack, target_write_memory)
4365 (target_write_raw_memory): Likewise.
4366
1b162304
JK
43672012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4370 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4371 * target.c (target_read_memory): Change LEN to ssize_t.
4372 * target.h (target_read_memory): Change LEN to ssize_t.
4373
8556afb4
PA
43742012-06-05 Pedro Alves <palves@redhat.com>
4375
4376 PR backtrace/13866
4377
4378 * breakpoint.c (until_break_command): Only fetch the selected
4379 frame after decode_line_1.
4380
fb139f32
PA
43812012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4382
4383 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4384 event breakpoint at _start, __start or main if a program
4385 interpreter is not found.
4386
a8e1bb34
JB
43872012-06-05 Joel Brobecker <brobecker@adacore.com>
4388
4389 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4390 Add declaration.
4391 * windows-tdep.c: #include "objfiles.h".
4392 (windows_iterate_over_objfiles_in_search_order): New function.
4393 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4394 iterate_over_objfiles_in_search_order gdbarch method to
4395 windows_iterate_over_objfiles_in_search_order.
4396 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4397
19630284
JB
43982012-06-05 Joel Brobecker <brobecker@adacore.com>
4399
4400 * gdbarch.sh: Add generation of
4401 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4402 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4403 (iterate_over_objfiles_in_search_order): New gdbarch method.
4404 * gdbarch.h, gdbarch.c: Regenerate.
4405 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4406 Add declaration.
4407 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4408 New function.
4409 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4410 out of lookup_symbol_aux_symtabs.
4411 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4412 call to lookup_symbol_aux_objfile.
4413 (struct global_sym_lookup_data): New type.
4414 (lookup_symbol_global_iterator_cb): New function.
4415 (lookup_symbol_global): Search for symbol using
4416 gdbarch_iterate_over_objfiles_in_search_order and
4417 lookup_symbol_global_iterator_cb.
4418 * findvar.c (struct minsym_lookup_data): New type.
4419 (minsym_lookup_iterator_cb): New function.
4420 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4421 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4422 and minsym_lookup_iterator_cb.
4423
67ff19f7
JB
44242012-06-05 Joel Brobecker <brobecker@adacore.com>
4425
4426 Revert the following patch:
4427 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4428 try locating the symbol in the symbol's own objfile first, before
4429 extending the search to all objfiles.
4430 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4431 out of lookup_symbol_aux_symtabs.
4432 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4433 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4434 Do not search EXCLUDE_OBJFILE.
4435 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4436 (lookup_symbol_global): Search for matches in the block's objfile
4437 first, before searching all other objfiles.
4438
ccab2054
JB
44392012-06-05 Joel Brobecker <brobecker@adacore.com>
4440
4441 * breakpoint.c (find_condition_and_thread): Stop parsing
4442 as soon as the first invalid keyword is found.
4443
e23d4a9c
JB
44442012-06-05 Joel Brobecker <brobecker@adacore.com>
4445
4446 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4447
70160166
JB
44482012-06-05 Joel Brobecker <brobecker@adacore.com>
4449
4450 * config/djgpp/djcheck.sh: Add copyright header.
4451
399501a5
JB
44522012-06-05 Joel Brobecker <brobecker@adacore.com>
4453
4454 * copyright.py (update_files, main): Fix path to update-copyright
4455 script.
4456
3770a159
JB
44572012-06-05 Joel Brobecker <brobecker@adacore.com>
4458
4459 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4460 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4461 for which a reminder to update by hand is printed.
4462
4aad0dfc
DE
44632012-06-04 Doug Evans <dje@google.com>
4464
4465 * buildsym.c (make_blockvector): Add comment.
4466
1f8cf220
PA
44672012-06-04 Pedro Alves <palves@redhat.com>
4468
4469 * arch-utils.c (default_gdb_signal_from_target): Delete.
4470 * arch-utils.h (default_gdb_signal_from_target): Delete.
4471 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4472 gdbarch_gdb_signal_from_target_p.
4473 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4474 predicate).
4475 * gdbarch.h: Regenerate.
4476 * gdbarch.c: Regenerate.
4477
86b49880
PA
44782012-06-04 Pedro Alves <palves@redhat.com>
4479
4480 * gdbarch.sh (gdb_signal_from_target): Mention that the
4481 implementation of the method must be host independent.
4482 * gdbarch.h: Regenerate.
4483
fe78531d
JK
44842012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4485
4486 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4487 parameters.
4488 (target_read_memory_bfd): New function.
4489 (symbol_file_add_from_memory): Use it.
4490
d790cf0a
DE
44912012-06-03 Doug Evans <dje@google.com>
4492
78e5175a
DE
4493 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4494 of primary symtab.
4495 (basic_lookup_transparent_type): Ditto.
4496
d790cf0a
DE
4497 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4498 (ALL_PRIMARY_SYMTABS): Use it.
4499 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4500 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4501 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4502 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4503 (basic_lookup_transparent_type): Ditto.
4504
c6e5ee5e
SDJ
45052012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4506
4507 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4508 it to optimize resolution of demangled name.
4509
a68ffae9
JK
45102012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 * configure.ac (development): Define new variable.
4513 Call AC_CHECK_LIB for mcheck if $development.
4514 (ERROR_ON_WARNING): Enable it by default only if $development.
4515 * config.in: Regenerate.
4516 * configure: Regenerate.
4517
5299c1c4
JK
45182012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4519
4520 * target.c (target_read_memory): Make LEN argument as size_t.
4521 * target.h (target_read_memory): Likewise.
4522
45232012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4524
4525 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4526
0c56f59b
EBM
45272012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4528
4529 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4530 BookE interface for PowerPC server processors if not available
4531 in the Linux Kernel.
4532
71bdabee
KS
45332012-05-31 Keith Seitz <keiths@redhat.com>
4534
4535 * linespec.c (decode_objc): Add cleanup to free
4536 INFO.FILE_SYMTABS.
4537 (find_linespec_symbols): Add cleanup to free CLASSES.
4538 * symfile.c (find_separate_debug_file_by_debuglink): Add
4539 cleanup to free DEBUGLINK.
4540 * ui-out.c (clear_header_list): No need to check if
4541 HEADER_NEXT.COLHDR is NULL.
4542 Free HEADER_NEXT.COL_NAME.
4543
acbd605d
MGD
45442012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4545
4546 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4547 warning.
4548
65662cde
PA
45492012-05-30 Jeff Kenton <jkenton@tilera.com>
4550
4551 * configure.host (gdb_host_cpu): Handle tilegx*.
4552 (gdb_host): Handle tilegx-*-linux*.
4553 * tilegx-linux-nat.c: New file.
4554 * config/tilegx/linux.mh: New file.
4555
ade64f0e
PA
45562012-05-30 Jeff Kenton <jkenton@tilera.com>
4557
4558 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4559 tilegx-linux-tdep.o.
4560 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4561 tilegx-linux-tdep.c.
4562 * configure.tgt: Handle tilegx-*-linux*.
4563 * tilegx-tdep.h: New file.
4564 * tilegx-tdep.c: New file.
4565 * tilegx-linux-tdep.c: New file.
4566 * regformats/reg-tilegx.dat: New file.
4567
bb08bdbd
EBM
45682012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4569
4570 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4571 accounting of hw watchpoints on ppc.
4572
ebd86fb5
TJB
45732012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4574
4575 * source.c (openp): Expand tilde in path entries.
4576
0a0edcd5
DE
45772012-05-29 Doug Evans <dje@google.com>
4578
98cc87bd
DE
4579 * buildsym.c (block_compar): Fix comment.
4580 (end_symtab): Fix and clarify some comments.
4581
0a0edcd5
DE
4582 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4583 cleanup_undefined_types.
4584 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4585 All callers updated.
4586
6f0c7050
TT
45872012-05-29 Tom Tromey <tromey@redhat.com>
4588
4589 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4590 fails.
4591 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4592 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4593 fails.
4594 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4595 fails.
4596
ec95993c
TG
45972012-05-29 Tristan Gingold <gingold@adacore.com>
4598
4599 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4600 (struct darwin_info): ... New struct.
4601 (solib_darwin_pspace_data): New variable.
4602 (darwin_pspace_data_cleanup): New function.
4603 (get_darwin_info): Likewise.
4604 (darwin_dyld_version_ok, darwin_load_image_infos)
4605 (darwin_solib_get_all_image_info_addr_at_init)
4606 (darwin_solib_read_all_image_info_addr): Add info argument.
4607 Adjust code.
4608 (darwin_current_sos): Use per pspace structure.
4609 (darwin_solib_create_inferior_hook): Likewise.
4610 (darwin_clear_solib): Likewise.
4611 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4612
ae25568b
PA
46132012-05-28 Pedro Alves <palves@redhat.com>
4614
4615 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4616 block that uses them. Clear ecss before handling each event.
4617
0c5bf5a9
JK
46182012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4619
4620 * solib-svr4.c (svr4_current_sos): New comment on
4621 svr4_current_sos_via_xfer_libraries fall back.
4622
bfb05775
JK
46232012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4626 it as a fallback for TYPE_IS_OPAQUE.
4627 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4628 symbols for lookup_symbol.
4629
685b1105
JK
46302012-05-24 John Steele Scott <toojays@toojays.net>
4631
4632 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4633 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4634 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4635 (check_producer): ... this new function, which also checks for ICC
4636 and caches the result.
4637 (producer_is_icc): New function.
4638 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4639 producer was ICC.
4640
22203bbf
PA
46412012-05-24 Pedro Alves <palves@redhat.com>
4642
4643 PR gdb/7205
4644
4645 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4646 (default_gdb_signal_to_target): ... this. Add comment.
4647 (default_gdb_signal_from_host): Rename to ...
4648 (default_gdb_signal_from_target): ... this. Add comment.
4649 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4650 (default_gdb_signal_to_target): ... this.
4651 (default_gdb_signal_from_host): Rename to ...
4652 (default_gdb_signal_from_target): ... this.
4653 * corelow.c (core_open): Adjust to naming change. Replace comment.
4654 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4655 (gdb_signal_from_target): ... this. Adjust to
4656 default_gdb_signal_from_host naming change. Extend comment.
4657 (gdb_signal_to_host): Rename to ...
4658 (gdb_signal_to_target): ... this. Adjust to
4659 default_gdb_signal_to_host naming change.
4660 * gdbarch.h, gdbarch.c: Renegerate.
4661
a493e3e2
PA
46622012-05-24 Pedro Alves <palves@redhat.com>
4663
4664 PR gdb/7205
4665
f782ad9b 4666 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4667
2ea28649
PA
46682012-05-24 Pedro Alves <palves@redhat.com>
4669
4670 PR gdb/7205
4671
4672 Replace target_signal with gdb_signal throughout.
4673
b09846a9
PA
46742012-05-24 Pedro Alves <palves@redhat.com>
4675
4676 PR tui/14159
4677
4678 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4679 string, instead of reusing the va_list argument.
4680
e77c107e
TT
46812012-05-24 Tom Tromey <tromey@redhat.com>
4682
4683 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4684 Remove.
4685
9fccedf7
DE
46862012-05-23 Doug Evans <dje@google.com>
4687
d50bd42b
DE
4688 * symtab.c (search_symbols): Formatting fixes.
4689 (print_symbol_info): Formatting fixes.
4690
9fccedf7
DE
4691 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4692 int64_t change to leb128 API.
4693 (read_encoded_value, decode_frame_entry_1): Ditto.
4694 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4695 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4696 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4697 (execute_stack_op): Ditto.
4698 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4699 (safe_read_uleb128, safe_read_sleb128): Ditto.
4700 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4701 (dwarf2_compile_expr_to_ax): Ditto.
4702 (locexpr_describe_location_piece): Ditto.
4703 (disassemble_dwarf_expression): Ditto.
4704 (locexpr_describe_location_1): Ditto.
4705
f3e0e960
SS
47062012-05-23 Stan Shebs <stan@codesourcery.com>
4707 Kwok Cheung Yeung <kcy@codesourcery.com>
4708
4709 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4710 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4711 (mi-cmd-info.o): New rule.
4712 * osdata.h (info_osdata_command): New declaration.
4713 * osdata.c (info_osdata_command): Change to non-static.
4714 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4715 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4716 * mi/mi-cmd-info.c: New file.
4717
c51fe631
DE
47182012-05-23 Doug Evans <dje@google.com>
4719
71cddcc1
DE
4720 * symtab.c (search_symbols): Pass NULL for file_matcher to
4721 expand_symtabs_matching if there are no files to match.
4722
c51fe631
DE
4723 * gdbtypes.c (lookup_typename): Simplify.
4724
a79378d4
PA
47252012-05-23 Pedro Alves <palves@redhat.com>
4726
4727 * arch-utils.h (default_target_signal_to_host): Delete.
4728 * arch-utils.c (default_target_signal_to_host): Delete.
4729 * gdbarch.sh (target_signal_to_host): Remove.
4730 * gdbarch.h, gdbarch.c: Regenerate.
4731
f664829e
DE
47322012-05-22 Doug Evans <dje@google.com>
4733
4734 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4735 "const gdb_byte *".
4736 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4737 (execute_cfa_program): Update to match API of leb128 functions.
4738 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4739 "const gdb_byte *".
4740 (read_unsigned_leb128, read_signed_leb128): Delete.
4741 (read_initial_length): Change type of buf argument to
4742 "const gdb_byte *".
4743 (read_encoded_value): Update to match API of leb128 functions.
4744 (decode_frame_entry): Change result to "const gdb_byte *", and
4745 similarly for "start" parameter.
4746 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4747 (dwarf2_build_frame_info): Change local frame_ptr to
4748 "const gdb_byte *".
4749 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4750 read_uleb128, read_sleb128. All callers updated.
4751 (safe_skip_leb128): New function.
4752 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4753 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4754 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4755 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4756 read_uleb128, read_sleb128.
4757 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4758 (execute_stack_op): Update to match API of leb128 functions.
4759 * dwarf2expr.h: #include "leb128.h".
4760 (read_uleb128, read_sleb128): Delete.
4761 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4762 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4763 * dwarf2loc.c (debug_loc_kind): New enum.
4764 (decode_debug_loc_addresses): New function.
4765 (decode_debug_loc_dwo_addresses): New function.
4766 (dwarf2_find_location_expression): Rewrite.
4767 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4768 (locexpr_describe_location_piece): Ditto.
4769 (disassemble_dwarf_expression): Ditto.
4770 (locexpr_describe_location_1): Ditto.
4771 (loclist_describe_location): Rewrite.
4772 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4773 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4774 (dwarf2_section_buffer_overflow_complaint): Renamed from
4775 dwarf2_macros_too_long_complaint. All callers updated.
4776 (skip_leb128): Delete.
4777 (init_cu_die_reader): Initialize reader->buffer_end.
4778 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4779 (skip_form_bytes): New arg buffer_end. All callers updated.
4780 Replace call to skip_leb128 with gdb_skip_leb128.
4781 (skip_unknown_opcode): New arg mac_end. All callers updated.
4782 (fill_in_loclist_baton): Initialize baton->from_dwo.
4783
837a1b32
MR
47842012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4785
4786 * mips-linux-nat.c (mips_linux_read_description): Use a more
4787 verbose error message.
4788
d0e64392
MR
47892012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4790
4791 * NEWS: Add MIPS/Linux DSP support.
4792 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4793 (SIGCONTEXT_DSPCTL): New macro.
4794 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4795 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4796 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4797 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4798 (N64_SIGCONTEXT_HI3): Likewise.
4799 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4800 (N64_SIGCONTEXT_LO3): Likewise.
4801 (N64_SIGCONTEXT_DSPCTL): Likewise.
4802 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4803 (mips_linux_o32_sigframe_init): Handle DSP registers.
4804 (mips_linux_n32n64_sigframe_init): Likewise.
4805
8bea7ed1
PM
48062012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4807
4808 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4809 call to abort.
4810
dab06dbe
PA
48112012-05-22 Pedro Alves <palves@redhat.com>
4812
4813 * target.h (store_waitstatus): Move declaration ...
4814 * inf-child.h (store_waitstatus): ... here.
4815 * target.c: Move inclusion of gdb_wait.h, and ...
4816 (store_waitstatus): ... this ...
4817 * inf-child.c: ... here.
4818 * linux-nat.c: Include inf-child.h.
4819 * rs6000-nat.c: Include inf-child.h.
4820 * spu-linux-nat.c: Include inf-child.h.
4821
43011e52
PM
48222012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4823
4824 * tracepoint.c (start_tracing): Add missing i18n markup.
4825 (stop_tracing, set_trace_user): Ditto.
4826 (set_trace_notes, set_trace_stop_notes): Ditto.
4827
b1af9e97
TT
48282012-05-21 Tom Tromey <tromey@redhat.com>
4829
4830 PR c++/7173:
4831 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4832 types.
4833 * value.h (value_cast_pointers): Update.
4834 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4835 (value_cast): Update.
4836 (update_search_result): New function.
4837 (do_search_struct_field): New, from search_struct_field. Check
4838 for ambiguous results.
4839 (search_struct_field): Rewrite.
4840 * infcall.c (value_arg_coerce): Update.
4841 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4842 value_cast_pointers.
4843 * ada-lang.c (ada_convert_actual): Update.
4844
e9e5e6b3
TT
48452012-05-21 Tom Tromey <tromey@redhat.com>
4846
4847 * macroexp.c (macro_stringify): Terminate the string.
4848
1564a261
JK
48492012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4852 Describe it.
4853 * auto-load.c (auto_load_expand_dir_vars): New function.
4854 (auto_load_safe_path_vec_update): Use it, remove the
4855 substitute_path_component call thanks to it.
4856 (auto_load_objfile_script): Remove the debug_file_directory processing.
4857 Use auto_load_expand_dir_vars, remove the substitute_path_component
4858 call thanks to it.
4859 * configure: Regenerate.
4860 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4861 path. Escape $ also for $debugdir.
4862 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4863 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4864
a3ec0bb1
DE
48652012-05-20 Doug Evans <dje@google.com>
4866
4867 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4868 before use. Check for symtab->includes == NULL before scanning it.
4869
d467df4e
MR
48702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4871
4872 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4873
4cc0665f
MR
48742012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4875
4876 * NEWS: Add microMIPS support and "set mips compression",
4877 "show mips compression" commands.
4878 * mips-tdep.h (mips_isa): New enum.
4879 (gdbarch_tdep): Add mips_isa.
4880 (mips_pc_is_mips16): Update prototype.
4881 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4882 * mips-tdep.c (mips_compression_mips16): New variable.
4883 (mips_compression_micromips): Likewise.
4884 (mips_compression_strings): Likewise.
4885 (mips_compression_string): Likewise.
4886 (is_mips16_isa, is_micromips_isa): New functions.
4887 (is_mips16_addr): Rename to...
4888 (is_compact_addr): ... this.
4889 (unmake_mips16_addr): Likewise to...
4890 (unmake_compact_addr): ... this.
4891 (make_mips16_addr): Likewise to...
4892 (make_compact_addr): ... this.
4893 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4894 functions.
4895 (mips_elf_make_msymbol_special): Handle microMIPS code.
4896 (msymbol_is_special): Rename to...
4897 (msymbol_is_mips16): ... this.
4898 (mips_make_symbol_special, mips_pc_is_mips16): Update
4899 accordingly.
4900 (msymbol_is_mips, msymbol_is_micromips): New functions.
4901 (mips16_to_32_reg): Rename to...
4902 (mips_reg3_to_reg): ... this.
4903 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4904 (mips_pc_isa): Likewise.
4905 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4906 code.
4907 (mips_fetch_instruction): Pass return status instead of printing
4908 an error message if requested. Handle microMIPS code. Bail out
4909 on an invalid ISA.
4910 (micromips_op): New macro.
4911 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4912 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4913 (b6s4_op, b7s3_reg): Likewise.
4914 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4915 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4916 (mips_insn_size): New function.
4917 (mips32_next_pc): Update mips_fetch_instruction call.
4918 (micromips_relative_offset7): New function.
4919 (micromips_relative_offset10): Likewise.
4920 (micromips_relative_offset16): Likewise.
4921 (micromips_pc_insn_size): Likewise.
4922 (micromips_bc1_pc): Likewise.
4923 (micromips_next_pc): Likewise.
4924 (unpack_mips16): Update mips_fetch_instruction call.
4925 (extended_mips16_next_pc): Update according to change to
4926 mips16_to_32_reg.
4927 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4928 code.
4929 (mips16_scan_prologue): Update mips_fetch_instruction call.
4930 Update according to change to mips16_to_32_reg.
4931 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4932 (mips_insn16_frame_base_sniffer): Likewise.
4933 (micromips_decode_imm9): New function.
4934 (micromips_scan_prologue): Likewise.
4935 (mips_micro_frame_cache): Likewise.
4936 (mips_micro_frame_this_id): Likewise.
4937 (mips_micro_frame_prev_register): Likewise.
4938 (mips_micro_frame_sniffer): Likewise.
4939 (mips_micro_frame_unwind): New variable.
4940 (mips_micro_frame_base_address): New function.
4941 (mips_micro_frame_base): New variable.
4942 (mips_micro_frame_base_sniffer): New function.
4943 (mips32_scan_prologue): Update mips_fetch_instruction call.
4944 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4945 rather than for MIPS16.
4946 (mips_insn32_frame_base_sniffer): Likewise.
4947 (mips_addr_bits_remove): Handle microMIPS code.
4948 (deal_with_atomic_sequence): Rename to...
4949 (mips_deal_with_atomic_sequence): ... this. Update the type
4950 of the variable used to hold an instruction. Remove the ISA bit
4951 check. Update mips_fetch_instruction call.
4952 (micromips_deal_with_atomic_sequence): New function.
4953 (deal_with_atomic_sequence): Likewise.
4954 (mips_about_to_return): Handle microMIPS code. Update
4955 mips_fetch_instruction call.
4956 (heuristic_proc_start): Check for the standard MIPS ISA rather
4957 than for MIPS16. Update mips_pc_is_mips16 and
4958 mips_fetch_instruction calls. Handle microMIPS code.
4959 (mips_push_dummy_code): Handle microMIPS code.
4960 (mips_eabi_push_dummy_call): Likewise.
4961 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4962 (mips_o64_push_dummy_call): Handle microMIPS code.
4963 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4964 (is_delayed): Remove function.
4965 (mips_single_step_through_delay): Replace the call to is_delayed
4966 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4967 Handle microMIPS code.
4968 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4969 microMIPS code.
4970 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4971 call.
4972 (micromips_in_function_epilogue_p): New function.
4973 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4974 call.
4975 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4976 Handle microMIPS.
4977 (gdb_print_insn_mips): Likewise.
4978 (mips_breakpoint_from_pc): Likewise.
4979 (mips_remote_breakpoint_from_pc): New function.
4980 (mips32_instruction_has_delay_slot): Simplify making use of the
4981 updated mips_fetch_instruction interface.
4982 (micromips_instruction_has_delay_slot): New function.
4983 (mips16_instruction_has_delay_slot): Simplify making use of the
4984 updated mips_fetch_instruction interface.
4985 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4986 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4987 calls. Handle microMIPS code.
4988 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4989 (mips_skip_trampoline_code): Handle microMIPS code.
4990 (global_mips_compression): New function.
4991 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4992 file flags. Register the microMIPS remote breakpoint handler
4993 and heuristic frame unwinder.
4994 (show_mips_compression): New function.
4995 (_initialize_mips_tdep): Add the "set mips compression" and
4996 "show mips compression" commands.
4997
22e048c9
SDJ
49982012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4999
5000 * ada-lang.c:
5001 * ada-tasks.c:
5002 * ada-varobj.c:
5003 * amd64-darwin-tdep.c:
5004 * arm-symbian-tdep.c:
5005 * arm-tdep.c:
5006 * avr-tdep.c:
5007 * ax-gdb.c:
5008 * bfin-linux-tdep.c:
5009 * breakpoint.c:
5010 * c-valprint.c:
5011 * cli/cli-cmds.c:
5012 * coffread.c:
5013 * cp-support.c:
5014 * cris-tdep.c:
5015 * dwarf2-frame-tailcall.c:
5016 * dwarf2-frame.c:
5017 * dwarf2expr.c:
5018 * dwarf2loc.c:
5019 * dwarf2read.c:
5020 * elfread.c:
5021 * eval.c:
5022 * expprint.c:
5023 * f-valprint.c:
5024 * frv-tdep.c:
5025 * h8300-tdep.c:
5026 * hppa-hpux-tdep.c:
5027 * hppa-tdep.c:
5028 * hppanbsd-tdep.c:
5029 * i386-nto-tdep.c:
5030 * i386-tdep.c:
5031 * i387-tdep.c:
5032 * ia64-tdep.c:
5033 * jit.c:
5034 * linespec.c:
5035 * linux-tdep.c:
5036 * lm32-tdep.c:
5037 * m2-valprint.c:
5038 * m32c-tdep.c:
5039 * m32r-rom.c:
5040 * m32r-tdep.c:
5041 * m68k-tdep.c:
5042 * m68klinux-tdep.c:
5043 * mi/mi-main.c:
5044 * microblaze-tdep.c:
5045 * mips-linux-tdep.c:
5046 * mips-tdep.c:
5047 * mn10300-tdep.c:
5048 * p-valprint.c:
5049 * parse.c:
5050 * ppc-linux-tdep.c:
5051 * ppc-sysv-tdep.c:
5052 * printcmd.c:
5053 * python/py-finishbreakpoint.c:
5054 * python/py-inferior.c:
5055 * python/py-infthread.c:
5056 * python/py-type.c:
5057 * python/python.c:
5058 * remote-fileio.c:
5059 * remote-m32r-sdi.c:
5060 * remote-mips.c:
5061 * reverse.c:
5062 * rl78-tdep.c:
5063 * rs6000-aix-tdep.c:
5064 * rs6000-tdep.c:
5065 * s390-tdep.c:
5066 * score-tdep.c:
5067 * sh64-tdep.c:
5068 * skip.c:
5069 * solib-darwin.c:
5070 * solib-dsbt.c:
5071 * solib-frv.c:
5072 * sparc-tdep.c:
5073 * spu-multiarch.c:
5074 * spu-tdep.c:
5075 * stack.c:
5076 * symfile.c:
5077 * symtab.c:
5078 * tic6x-tdep.c:
5079 * tracepoint.c:
5080 * v850-tdep.c:
5081 * valarith.c:
5082 * valprint.c:
5083 * value.c:
5084 * xcoffread.c:
5085 * xtensa-tdep.c:
5086 * ada-lang.c:
5087 * ada-tasks.c:
5088 * ada-varobj.c:
5089 * amd64-darwin-tdep.c:
5090 * arm-symbian-tdep.c:
5091 * arm-tdep.c: Delete unused variables.
5092
aff139ff
JK
50932012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5094
5095 Rename $ddir to $datadir.
5096 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5097 * auto-load.c (auto_load_safe_path_vec_update)
5098 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5099 * configure: Regenerate.
5100 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5101 Likewise. Remove the 'use $ddir' help string.
5102
f7bfa992
JK
51032012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5104
5105 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5106 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5107
9cb709b6
TT
51082012-05-18 Tom Tromey <tromey@redhat.com>
5109
5110 PR exp/13907:
5111 * valprint.h (struct value_print_options) <symbol_print>: New
5112 field.
5113 * valprint.c (user_print_options): Add default for symbol_print.
5114 (show_symbol_print): New function.
5115 (generic_val_print): Respect symbol_print.
5116 (_initialize_valprint): Add "print symbol" setting.
5117 * f-valprint.c (f_val_print): Respect symbol_print.
5118 * c-valprint.c (c_val_print): Respect symbol_print.
5119 * NEWS: Update.
5120 * printcmd.c (print_address_symbolic): Return int. Ignore some
5121 zero-size symbols.
5122 (print_address_demangle): Return int.
5123 * defs.h: (print_address_symbolic): Return int.
5124 * value.h (print_address_demangle): Return int.
5125
b012acdd
TT
51262012-05-18 Tom Tromey <tromey@redhat.com>
5127
5128 * valprint.c (val_print_string): Don't print leading space.
5129 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5130 print space before string or vtbl.
5131 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5132 before string.
5133 * jv-valprint.c (java_value_print): Print space before string.
5134 * go-valprint.c (print_go_string): Print space before string.
5135 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5136 space before string.
5137 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5138 space before string or vtbl.
5139 * auxv.c (fprint_target_auxv): Print space after address.
5140
1d51a733
TT
51412012-05-18 Tom Tromey <tromey@redhat.com>
5142
5143 * printcmd.c (print_address_demangle): Remove special case for 0.
5144
edf0c1b7
TT
51452012-05-18 Tom Tromey <tromey@redhat.com>
5146
5147 * printcmd.c (print_address_demangle): Add 'opts' argument.
5148 * p-valprint.c (pascal_val_print): Update.
5149 * jv-valprint.c (java_val_print): Update.
5150 * value.h: Update.
5151 * valprint.c (generic_val_print): Update.
5152 (print_function_pointer_address): Add 'options' argument. Remove
5153 'addressprint' argument. Update.
5154 * m2-valprint.c (print_unpacked_pointer): Update.
5155 * gnu-v3-abi.c (print_one_vtable): Update.
5156 (gnuv3_print_method_ptr): Update.
5157 * f-valprint.c (f_val_print): Update.
5158 * cp-valprint.c (cp_print_value_fields): Update.
5159 * valprint.h (print_function_pointer_address): Update.
5160 * c-valprint.c (c_val_print): Update.
5161
9703b513
TT
51622012-05-18 Tom Tromey <tromey@redhat.com>
5163
5164 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5165 directly corresponding to the found psymtab.
5166 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5167 (dw2_find_pc_sect_symtab): Use it.
5168 * block.h (blockvector_contains_pc): Declare.
5169 * block.c (find_block_in_blockvector): New function.
5170 (blockvector_for_pc_sect): Use it.
5171 (blockvector_contains_pc): New function.
5172
5a439849
MR
51732012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5174
5175 * mips-tdep.h (mips_write_pc): New prototype.
5176 * mips-tdep.c (mips_write_pc): Make external, add description.
5177 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5178 add description.
5179
8376de04
MR
51802012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5181
5182 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5183 mips_regnum->pc.
5184 (mips_unwind_pc, mips_write_pc): Likewise.
5185 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5186 gdbarch_read_pc.
5187
d3581e61
JB
51882012-05-17 Joel Brobecker <brobecker@adacore.com>
5189
5190 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5191 proc_warn, proc_error, proc_get_status, proc_flags,
5192 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5193 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5194 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5195 proc_stop_process, proc_wait_for_stop, proc_run_process,
5196 proc_set_traced_signals, proc_set_traced_faults,
5197 proc_set_traced_sysentry, proc_set_traced_sysexit,
5198 proc_set_held_signals, proc_get_held_signals,
5199 proc_get_traced_signals, proc_get_traced_faults,
5200 proc_get_traced_sysentry, proc_get_traced_sysexit,
5201 proc_clear_current_fault, proc_set_current_signal,
5202 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5203 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5204 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5205 proc_get_current_thread, proc_get_current_thread,
5206 proc_get_current_thread, proc_update_threads,
5207 proc_update_threads, proc_update_threads, proc_update_threads,
5208 proc_iterate_over_threads, procfs_find_new_threads,
5209 procfs_pid_to_str): Make static. Remove advance declaration.
5210 (proc_cursig): Make static. Conditionalized defintion on
5211 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5212 (proc_syscall, proc_set_kill_on_last_close,
5213 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5214 proc_get_pending_signals, proc_get_signal_actions,
5215 proc_trace_signal, proc_ignore_signal): Delete.
5216
81b9b86e
SDJ
52172012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5218
5219 * coffread.c (cs_section_address): Passing proper argument for
5220 `bfd_get_section_vma'.
5221 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5222 `bfd_get_section_flags'.
5223 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5224 `bfd_get_section_vma'.
5225
abc9d0dc
TT
52262012-05-16 Tom Tromey <tromey@redhat.com>
5227
5228 PR macros/13205:
5229 * macrotab.h: (macro_define_special): Declare.
5230 (enum macro_special_kind): New.
5231 (struct macro_definition) <argc, replacement>: Update comments.
5232 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5233 (macro_define_object_internal): New function.
5234 (macro_define_object): Use it.
5235 (macro_define_special): New function.
5236 (fixup_definition): New function.
5237 (macro_lookup_definition, foreach_macro_in_scope)
5238 (foreach_macro): Use fixup_definition.
5239 * macroexp.h (macro_stringify): Declare.
5240 * macroexp.c (free_buffer_return_text): New function.
5241 (stringify): Constify "arg".
5242 (macro_stringify): New function.
5243 * dwarf2read.c (macro_start_file): Call macro_define_special.
5244
6a3a010b 52452012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5246 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5247
5248 * breakpoint.h (bp_location): Add related_address member.
5249 * inferior.h (get_return_value): Take a pointer to struct value
5250 instead of struct type for the function requested.
5251 * value.h (using_struct_return): Likewise.
5252 * gdbarch.sh (return_value): Take a pointer to struct value
5253 instead of struct type for the function requested.
5254 * breakpoint.c (set_breakpoint_location_function): Initialize
5255 related_address for bp_gnu_ifunc_resolver breakpoints.
5256 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5257 requested function's address to gdbarch_return_value.
5258 * eval.c (evaluate_subexp_standard): Pass the requested
5259 function's address to using_struct_return.
5260 * infcall.c (call_function_by_hand): Pass the requested
5261 function's address to using_struct_return and
5262 gdbarch_return_value.
5263 * infcmd.c (get_return_value): Take a pointer to struct value
5264 instead of struct type for the function requested.
5265 (print_return_value): Update accordingly.
5266 (finish_command_continuation): Likewise.
5267 * stack.c (return_command): Pass the requested function's
5268 address to using_struct_return and gdbarch_return_value.
5269 * value.c (using_struct_return): Take a pointer to struct value
5270 instead of struct type for the function requested. Pass the
5271 requested function's address to gdbarch_return_value.
5272 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5273 New function_value member, replacing function_type.
5274 (bpfinishpy_dealloc): Update accordingly.
5275 (bpfinishpy_pre_stop_hook): Likewise.
5276 (bpfinishpy_init): Likewise. Record the requested function's
5277 address.
5278 * mips-tdep.c (mips_fval_reg): New enum.
5279 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5280 words put in GP registers.
5281 (mips_o64_push_dummy_call): Update a comment.
5282 (mips_o32_return_value): Take a pointer to struct value instead
5283 of struct type for the function requested and use it to check if
5284 using the MIPS16 calling convention. Return the designated
5285 general purpose registers for floating-point values returned in
5286 MIPS16 mode.
5287 (mips_o64_return_value): Likewise.
5288 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5289 (ppc_sysv_abi_broken_return_value): Likewise.
5290 (ppc64_sysv_abi_return_value): Likewise.
5291 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5292 value instead of struct type for the function requested.
5293 * amd64-tdep.c (amd64_return_value): Likewise.
5294 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5295 * arm-tdep.c (arm_return_value): Likewise.
5296 * avr-tdep.c (avr_return_value): Likewise.
5297 * bfin-tdep.c (bfin_return_value): Likewise.
5298 * cris-tdep.c (cris_return_value): Likewise.
5299 * frv-tdep.c (frv_return_value): Likewise.
5300 * h8300-tdep.c (h8300_return_value): Likewise.
5301 (h8300h_return_value): Likewise.
5302 * hppa-tdep.c (hppa32_return_value): Likewise.
5303 (hppa64_return_value): Likewise.
5304 * i386-tdep.c (i386_return_value): Likewise.
5305 * ia64-tdep.c (ia64_return_value): Likewise.
5306 * iq2000-tdep.c (iq2000_return_value): Likewise.
5307 * lm32-tdep.c (lm32_return_value): Likewise.
5308 * m32c-tdep.c (m32c_return_value): Likewise.
5309 * m32r-tdep.c (m32r_return_value): Likewise.
5310 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5311 * m68k-tdep.c (m68k_return_value): Likewise.
5312 (m68k_svr4_return_value): Likewise.
5313 * m88k-tdep.c (m88k_return_value): Likewise.
5314 * mep-tdep.c (mep_return_value): Likewise.
5315 * microblaze-tdep.c (microblaze_return_value): Likewise.
5316 * mn10300-tdep.c (mn10300_return_value): Likewise.
5317 * moxie-tdep.c (moxie_return_value): Likewise.
5318 * mt-tdep.c (mt_return_value): Likewise.
5319 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5320 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5321 (ppc_sysv_abi_broken_return_value): Likewise.
5322 (ppc64_sysv_abi_return_value): Likewise.
5323 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5324 * rl78-tdep.c (rl78_return_value): Likewise.
5325 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5326 * rx-tdep.c (rx_return_value): Likewise.
5327 * s390-tdep.c (s390_return_value): Likewise.
5328 * score-tdep.c (score_return_value): Likewise.
5329 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5330 (sh_return_value_fpu): Likewise.
5331 * sh64-tdep.c (sh64_return_value): Likewise.
5332 * sparc-tdep.c (sparc32_return_value): Likewise.
5333 * sparc64-tdep.c (sparc64_return_value): Likewise.
5334 * spu-tdep.c (spu_return_value): Likewise.
5335 * tic6x-tdep.c (tic6x_return_value): Likewise.
5336 * v850-tdep.c (v850_return_value): Likewise.
5337 * vax-tdep.c (vax_return_value): Likewise.
5338 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5339 * xtensa-tdep.c (xtensa_return_value): Likewise.
5340 * gdbarch.c: Regenerate.
5341 * gdbarch.h: Regenerate.
5342
29ca12b3
TT
53432012-05-15 Tom Tromey <tromey@redhat.com>
5344
5345 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5346
588ae58c
JB
53472012-05-15 Joel Brobecker <brobecker@adacore.com>
5348
5349 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5350 of command in two error message.
5351
855a6e68
JB
53522012-05-15 Joel Brobecker <brobecker@adacore.com>
5353
5354 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5355
d634f2de
JB
53562012-05-15 Joel Brobecker <brobecker@adacore.com>
5357
5358 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5359
9cc815f5
JK
53602012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5361
5362 * NEWS (show auto-load scripts-directory): Add forgotten command.
5363
6a609e58
JK
53642012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5365
5366 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5367 parameters.
5368
ac1438b5
L
53692012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5370
5371 * amd64-tdep.c: Include features/i386/x32.c and
5372 features/i386/x32-avx.c.
5373 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5374 initialize_tdesc_x32_avx.
5375
e7e0cddf
SS
53762012-05-14 Stan Shebs <stan@codesourcery.com>
5377
5378 Add dynamic printf.
5379 * breakpoint.h (enum bptype): New type bp_dprintf.
5380 (struct breakpoint): New field extra_string.
5381 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5382 (create_breakpoint): Add extra_string arg.
5383 * breakpoint.c (dprintf_breakpoint_ops): New.
5384 (is_breakpoint): Add bp_dprintf.
5385 (bpstat_what): Add dprintf case.
5386 (bptype_string): Ditto.
5387 (print_one_breakpoint_location): Ditto.
5388 (init_bp_location): Ditto.
5389 (bkpt_print_mention): Ditto.
5390 (dprintf_style_enums): New array.
5391 (dprintf_style): New global.
5392 (dprintf_function): New global.
5393 (dprintf_channel): New global.
5394 (update_dprintf_command_list): New function.
5395 (update_dprintf_commands): New function.
5396 (init_breakpoint_sal): Add extra_string argument, handle it.
5397 (create_breakpoint_sal): Add extra_string argument.
5398 (create_breakpoints_sal): Add extra_string argument, update callers.
5399 (find_condition_and_thread): Add extra argument.
5400 (create_breakpoint): Add extra_string argument, record it.
5401 (dprintf_command): New function.
5402 (break_command_1): Add arg to create_breakpoint call.
5403 (handle_gnu_v3_exceptions): Ditto.
5404 (trace_command): Ditto.
5405 (ftrace_command): Ditto.
5406 (strace_command): Ditto.
5407 (bkpt_print_mention): Add dprintf case.
5408 (create_breakpoint_sal_default): Add extra_string argument.
5409 (_initialize_breakpoint): Add new commands.
5410 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5411 * python/py-breakpoint.c (bppy_init): Ditto.
5412 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5413
8ae38c14
MR
54142012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5415
5416 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5417
9f676e66
SCR
54182012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5419
5420 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5421 unsigned long long.
5422
7efc75aa
SCR
54232012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5424
5425 Add a new function gdb.find_pc_line to the Python API.
5426 * NEWS (Python Scripting): Add entry about the new function.
5427 * python/python.c (gdbpy_find_pc_line): New function which
5428 implements gdb.find_pc_line.
5429 (GdbMethods): Add entry for the new function.
5430
70af3797
PA
54312012-05-12 Pedro Alves <palves@redhat.com>
5432
5433 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5434 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5435
06da564e
EZ
54362012-05-12 Eli Zaretskii <eliz@gnu.org>
5437
5438 * inferior.c: Include completer.h
5439 (initialize_inferiors): Set completer of add-inferior to
5440 filename_completer.
5441
0288cee2
L
54422012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5443
5444 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5445 gdbarch_ptr_bit for x32 core dump.
5446
f6537a2c
L
54472012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5448
5449 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5450 and features/i386/x32-avx-linux.c.
5451
85d4a676
SS
54522012-05-11 Stan Shebs <stan@codesourcery.com>
5453 Kwok Cheung Yeung <kcy@codesourcery.com>
5454
5455 * NEWS: Describe new info os commands.
5456 * common/linux-osdata.c (PID_T, TIME_T): Define.
5457 (MAX_PID_T_STRLEN): New.
5458 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5459 MAX_PID_T_STRLEN.
5460 (command_from_pid): Add comment. Change to use PID_T.
5461 (commandline_from_pid): Change to use PID_T.
5462 (user_from_pid): Add comment.
5463 (get_process_owner): Add comment. Change to use PID_T and
5464 MAX_PID_T_STRLEN.
5465 (get_number_of_cpu_cores): Add comment.
5466 (get_cores_used_by_process): Add comment. Change to use PID_T and
5467 MAX_PID_T_STRLEN.
5468 (linux_xfer_osdata_processes): Change to use PID_T and
5469 MAX_PID_T_STRLEN.
5470 (compare_processes): New function.
5471 (linux_xfer_osdata_processgroups): New function.
5472 (linux_xfer_osdata_threads): Change to use PID_T.
5473 (linux_xfer_osdata_fds): New function.
5474 (format_socket_state, print_sockets): New functions.
5475 (union socket_addr): New union.
5476 (linux_xfer_osdata_isockets): New function.
5477 (time_from_time_t, group_from_gid): New functions.
5478 (linux_xfer_osdata_shm): New function.
5479 (linux_xfer_osdata_sem): New function.
5480 (linux_xfer_osdata_msg): New function.
5481 (linux_xfer_osdata_modules): New function.
5482 (osdata_table): Add new entries.
5483 * common/buffer.c (buffer_xml_printf): Add support for long and
5484 long long format specifiers.
5485
f24afd6d
L
54862012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5487
5488 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5489 (tdesc_x32_avx_linux): Likewise.
5490
7349ff92
JK
54912012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5492
5493 Implement multi-component --with-auto-load-dir.
5494 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5495 entries.
5496 (--with-auto-load-safe-path): Update the default value description.
5497 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5498 New.
5499 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5500 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5501 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5502 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5503 "set auto-load scripts-directory".
5504 * config.in: Regenerate.
5505 * configure: Regenerate.
5506 * configure.ac (--with-auto-load-dir): New configure option.
5507 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5508
6dea1fbd
JK
55092012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 Provide $ddir substitution for --with-auto-load-safe-path.
5512 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5513 entries.
5514 * auto-load.c: Include observer.h.
5515 (auto_load_safe_path_vec_update): Call substitute_path_component for
5516 each component. New variable ddir_subst.
5517 (auto_load_gdb_datadir_changed): New function.
5518 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5519 AUTO_LOAD_SAFE_PATH. New comment.
5520 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5521 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5522 * config.in: Regenerate.
5523 * configure: Regenerate.
5524 * configure.ac (--auto-load-safe-path): Rename
5525 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5526 GDB_DATADIR/auto-load.
5527 * defs.h (substitute_path_component): New declaration.
5528 * top.c: Include observer.h.
5529 (set_gdb_datadir): New function.
5530 (init_main): Install it for "set data-directory".
5531 * utils.c (substitute_path_component): New function.
5532
b09aca3a
JK
55332012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5534
5535 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5536 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5537 DEBUG_FILE_DIRECTORY. Handle multiple components of
5538 DEBUG_FILE_DIRECTORY.
5539
95554aad
TT
55402012-05-10 Tom Tromey <tromey@redhat.com>
5541
5542 * dwarf2read.c (recursively_write_psymbols): New function.
5543 (write_psymtabs_to_index): Use it.
5544
5545 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5546 field.
5547 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5548 (load_partial_comp_unit): Update.
5549 (queue_comp_unit): Add argument 'pretend_language'.
5550 (process_queue): Update.
5551 (psymtab_to_symtab_1): Skip dependencies that have a user.
5552 (load_partial_comp_unit_reader): Give meaning to the 'data'
5553 argument.
5554 (load_full_comp_unit): Add 'pretend_language' argument.
5555 (process_full_comp_unit): Add 'pretend_language' argument. Set
5556 language on CU.
5557 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5558 Update.
5559 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5560 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5561 Update.
5562 (prepare_one_comp_unit): Add 'pretend_language' argument.
5563
5564 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5565 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5566 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5567 (dw2_do_instantiate_symtab): Check whether symtab was read in
5568 before queueing.
5569 (dw2_instantiate_symtab): Add assertion. Call
5570 process_cu_includes.
5571 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5572 (partial_symtab_p): New typedef.
5573 (set_partial_user): New function.
5574 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5575 (scan_partial_symbols): Add imported CU to imported_symtabs.
5576 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5577 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5578 (get_symtab, recursively_compute_inclusions)
5579 (compute_symtab_includes, process_cu_includes)
5580 (process_imported_unit_die): New functions.
5581 (process_die) <DW_TAG_imported_unit>: New case.
5582 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5583
5584 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5585 comment.
5586 (struct partial_die_info) <locdesc>: Remove.
5587 <d>: New field.
5588 (process_psymtab_comp_unit): Add 'read_partial' argument.
5589 Update.
5590 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5591 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5592 (add_partial_symbol): Update.
5593 (process_die): Handle DW_TAG_partial_unit.
5594 (read_file_scope): Update comment.
5595 (load_partial_dies): Handle DW_TAG_imported_unit.
5596 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5597 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5598
e871fbb9
TT
55992012-05-10 Tom Tromey <tromey@redhat.com>
5600
5601 * cc-with-dwz.sh: New file.
5602
b5b04b5b
TT
56032012-05-10 Tom Tromey <tromey@redhat.com>
5604
5605 * symtab.h (struct symtab) <includes, user>: New fields.
5606 * block.h (struct block_iterator) <d, idx, which>: New fields.
5607 * block.c (initialize_block_iterator, find_iterator_symtab)
5608 (block_iterator_step, block_iter_name_step)
5609 (block_iter_match_step): New functions.
5610 (block_iterator_first, block_iterator_next)
5611 (block_iter_name_first, block_iter_name_next)
5612 (block_iter_match_first, block_iter_match_next): Rewrite.
5613 (get_block_symtab): New function.
5614
84a146c9
TT
56152012-05-10 Tom Tromey <tromey@redhat.com>
5616
5617 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5618 set_block_symtab.
5619 * jit.c (finalize_symtab): Use allocate_global_block,
5620 set_block_symtab.
5621 * buildsym.c (finish_block_internal): New function, from old
5622 finish_block.
5623 (finish_block): Rewrite.
5624 (end_symtab): Use finish_block_internal, set_block_symtab.
5625 * block.h (struct global_block): New.
5626 (allocate_global_block, set_block_symtab): Declare.
5627 * block.c (allocate_global_block, set_block_symtab): New
5628 functions.
5629
9439a077
TT
56302012-05-10 Tom Tromey <tromey@redhat.com>
5631
5632 * psymtab.c (partial_map_expand_apply): Add assertion.
5633 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5634 (psymtab_to_symtab): Find unshared psymtab.
5635 (dump_psymtab): Print including psymtabs.
5636 (recursively_search_psymtabs): New function.
5637 (expand_symtabs_matching_via_partial): Use it.
5638 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5639 fields.
5640 (enum psymtab_search_status): New.
5641
8157b174
TT
56422012-05-10 Tom Tromey <tromey@redhat.com>
5643
5644 * tracepoint.c (scope_info): Update.
5645 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5646 (find_pc_sect_symtab, search_symbols)
5647 (default_make_symbol_completion_list_break_on)
5648 (make_file_symbol_completion_list): Update.
5649 * symmisc.c (dump_symtab_1): Update.
5650 * stack.c (print_frame_args, iterate_over_block_locals)
5651 (print_frame_labels, iterate_over_block_arg_vars): Update.
5652 * python/py-block.c (block_object) <dict>: Remove.
5653 <block>: New field.
5654 <iter>: Change type.
5655 (blpy_iter): Update.
5656 (blpy_block_syms_iternext): Update.
5657 * psymtab.c (map_block): Use block iterators.
5658 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5659 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5660 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5661 * infrun.c (check_exception_resume): Update.
5662 * cp-support.c (make_symbol_overload_list_block): Update.
5663 * coffread.c (patch_opaque_types): Update.
5664 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5665 * block.h (struct block_iterator): New.
5666 (block_iterator_first, block_iterator_next, block_iter_name_first)
5667 (block_iter_name_next, block_iter_match_first)
5668 (block_iter_match_next): Declare.
5669 (ALL_BLOCK_SYMBOLS): Redefine.
5670 * block.c (block_iterator_first, block_iterator_next)
5671 (block_iter_name_first, block_iter_name_next)
5672 (block_iter_match_first, block_iter_match_next): New functions.
5673 * ada-lang.c (ada_add_block_symbols)
5674 (ada_make_symbol_completion_list): Use block iterator.
5675
a2ca7a52
TT
56762012-05-10 Tom Tromey <tromey@redhat.com>
5677
5678 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5679 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5680 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5681 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5682 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5683 Update.
5684
64ea88dc
JB
56852012-05-10 Joel Brobecker <brobecker@adacore.com>
5686
5687 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5688 print-file-var-lib2.c, print-file-var-main.c and
5689 print-file-var.exp (located in gdb/testsuite/gdb.base).
5690
99a547d6
JB
56912012-05-10 Joel Brobecker <brobecker@adacore.com>
5692
5693 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5694 try locating the symbol in the symbol's own objfile first, before
5695 extending the search to all objfiles.
5696 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5697 out of lookup_symbol_aux_symtabs.
5698 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5699 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5700 Do not search EXCLUDE_OBJFILE.
5701 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5702 (lookup_symbol_global): Search for matches in the block's objfile
5703 first, before searching all other objfiles.
5704
0ece64fd
TG
57052012-05-10 Tristan Gingold <gingold@adacore.com>
5706
5707 * printcmd.c (set_command): Add pre/post inc/dec.
5708
3d16a105
FCE
57092012-05-09 Frank Ch. Eigler <fche@redhat.com>
5710
5711 * gdb.1: Document -ex option.
5712
2efbc0f7
JB
57132012-05-09 Joel Brobecker <brobecker@adacore.com>
5714
5715 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5716 * inferior.h (AT_SYMBOL): Delete.
5717
2c76a0c7
JB
57182012-05-09 Joel Brobecker <brobecker@adacore.com>
5719
5720 * mips-tdep.c (mips_push_dummy_code): New function.
5721 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5722 ON_STACK and install mips_push_dummy_code as our gdbarch
5723 push_dummy_code routine.
5724
9401a810
PA
57252012-05-09 Pedro Alves <palves@redhat.com>
5726
5727 * target.c (set_maintenance_target_async_permitted): Rename to ...
5728 (set_target_async_command): ... this.
5729 (show_maintenance_target_async_permitted): Rename to ...
5730 (show_target_async_command): ... this.
5731 (initialize_targets): Adjust.
5732
3929b321
DE
57332012-05-08 Doug Evans <dje@google.com>
5734
5735 * go-exp.y (classify_name): Add missing assignment of fields of
5736 yylval.ssym.
5737
c41535fd
EZ
57382012-05-08 Eli Zaretskii <eliz@gnu.org>
5739
5740 Display the ">" prompt in interactive mode while reading canned
5741 commands, even when the current interpreter is MI.
5742
5743 * interps.c (interp_set_temp): New function.
5744
5745 * interps.h (interp_set_temp): Add prototype.
5746
5747 * cli/cli-script.c (restore_interp): New cleanup function.
5748 (read_command_lines): Temporarily override the current interpreter
5749 with CLI and arrange for restoring the original one.
5750
c0749c4d
JS
57512012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5752
5753 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5754
d7333987
SDJ
57552012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5756
5757 * probe.c (parse_probes): Move conditional to check for
5758 debuginfo files from here...
5759 * stap-probe.c (stap_get_probes): ... to here.
5760
649e6d92
MK
57612012-05-07 Mark Kettenis <kettenis@gnu.org>
5762 H.J. Lu <hongjiu.lu@intel.com>
5763
5764 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5765 `movl %esp, %ebp' for the X32 ABI.
5766
f39c6ffd
TT
57672012-05-07 Tom Tromey <tromey@redhat.com>
5768
5769 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5770 get_DW_TAG_name.
5771 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5772 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5773 (dwarf_stack_op_name): Remove.
5774 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5775 (decode_locdesc): Use get_DW_OP_name.
5776 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5777 (dwarf2_compile_expr_to_ax): Likewise.
5778 (disassemble_dwarf_expression): Likewise.
5779 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5780
1e1f6591
CLT
57812012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5782
5783 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5784 (sh_linux_sigtramp_cache): New function.
5785 (sh_linux_sigreturn_init): New function.
5786 (sh_linux_rt_sigreturn_init): New function.
5787 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5788 patterns.
5789 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5790 syscall codes.
5791 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5792 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5793 (sh_linux_init_abi): Add init calls to register new tramp_frame
5794 definitions under 32-bit SH, update comments.
5795
545c08b4
PA
57962012-05-07 Pedro Alves <palves@redhat.com>
5797
daac165e
PA
5798 PR gdb/10952
5799
545c08b4
PA
5800 * amd64-linux-tdep.c: Include glibc-tdep.h.
5801 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5802 gdbarch_skip_solib_resolver callback.
5803
af2c1515
JK
58042012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5805
5806 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5807 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5808 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5809 (add_auto_load_safe_path): Change the error message.
5810 (_initialize_auto_load): Change the "safe-path" help text.
5811 * configure: Regenerate
5812 * configure.ac (--without-auto-load-safe-path): Set
5813 WITH_AUTO_LOAD_SAFE_PATH to /.
5814
1067f998
SDJ
58152012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5816
5817 * stap-probe.h: Do not include unecessary `probe.h'.
5818
45dfa85a
AM
58192012-05-05 Alan Modra <amodra@gmail.com>
5820
5821 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5822 bfd_und_section_ptr.
5823 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5824 and bfd_com_section_ptr.
5825
cf093994
JB
58262012-05-04 Joel Brobecker <brobecker@adacore.com>
5827
762ebb75 5828 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5829
d40dc7a8
JB
58302012-05-04 Joel Brobecker <brobecker@adacore.com>
5831
5832 * windows-nat.h (segment_register_p_ftype): New typedef.
5833 (windows_set_segment_register_p): Add declaration.
5834 * windows-nat.c (segment_register_p): New static global.
5835 (windows_set_segment_register_p): New function.
5836 (do_windows_fetch_inferior_registers): Add special handling
5837 for segment registers.
5838 * amd64-windows-nat.c: #include "amd64-tdep.h".
5839 (amd64_windows_segment_register_p): New function.
5840 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5841 * i386-windows-nat.c: #include "i386-tdep.h".
5842 (i386_windows_segment_register_p): New function.
5843 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5844
52b3699b
TG
58452012-05-04 Tristan Gingold <gingold@adacore.com>
5846
5847 * printcmd.c (set_command): Emit a warning if the expression is not
5848 an assignment.
5849
94c74239
JB
58502012-05-03 Joel Brobecker <brobecker@adacore.com>
5851
5852 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5853 Make static.
5854
fcf57f19
SDJ
58552012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5856
5857 * stap-probe.c (stap_is_operator): Change declaration.
5858 (stap_get_opcode): Change return value.
5859 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5860 `stap_parse_argument_1'.
5861
27d2932e
PA
58622012-05-03 Pedro Alves <pedro@codesourcery.com>
5863
5864 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5865 debug log.
5866
a20ee7a4
SCR
58672012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5868
5869 Add two new methods global_block and static_block to gdb.Symtab
5870 objects.
5871 * NEWS (Python scripting): Add entry about the new methods.
5872 * python/py-symtab.c (stpy_global_block): New function which
5873 implements the gdb.Symtab.global_block() method.
5874 (stpy_static_block): New function which implements the
5875 gdb.Symtab.static_block() method.
5876 (symtab_object_methods): Add entries for the two new methods.
5877
943cb756
DE
58782012-05-03 Doug Evans <dje@google.com>
5879
5880 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5881 files.
5882
f4644a3f
YQ
58832012-05-03 Yao Qi <yao@codesourcery.com>
5884
5885 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5886 space.
5887 (i386_process_record): Ditto.
5888
ef61f180
JB
58892012-05-02 Joel Brobecker <brobecker@adacore.com>
5890
5891 * infcall.c (unwind_on_signal_p): Make static.
5892
02f1df11
JB
58932012-05-02 Joel Brobecker <brobecker@adacore.com>
5894
5895 * sol-thread.c (solaris_pid_to_str): Make static.
5896 (_initialize_sol_thread): Add prototype.
5897
39023530
JB
58982012-05-02 Joel Brobecker <brobecker@adacore.com>
5899
5900 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5901
c6b0c501
CF
59022012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5903
5904 * MAINTAINERS: Remove myself.
5905
1ef71717
JK
59062012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5907
5908 Fix --without-auto-load-safe-path for MS-Windows host platform.
5909 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5910
b31b86a7
EZ
59112012-05-02 Eli Zaretskii <eliz@gnu.org>
5912
5913 * gdb_curses.h: Undefine KEY_EVENT before including curses
5914 headers. Move "#undef MOUSE_MOVED" before any curses header
5915 inclusion.
5916
777532fc
SDJ
59172012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5918
5919 * features/i386/i386-mmx-linux.c: Regenerate.
5920 * features/rs6000/powerpc-32.c: Likewise.
5921 * features/rs6000/powerpc-32l.c: Likewise.
5922 * features/rs6000/powerpc-403.c: Likewise.
5923 * features/rs6000/powerpc-403gc.c: Likewise.
5924 * features/rs6000/powerpc-405.c: Likewise.
5925 * features/rs6000/powerpc-505.c: Likewise.
5926 * features/rs6000/powerpc-601.c: Likewise.
5927 * features/rs6000/powerpc-602.c: Likewise.
5928 * features/rs6000/powerpc-603.c: Likewise.
5929 * features/rs6000/powerpc-604.c: Likewise.
5930 * features/rs6000/powerpc-64.c: Likewise.
5931 * features/rs6000/powerpc-64l.c: Likewise.
5932 * features/rs6000/powerpc-750.c: Likewise.
5933 * features/rs6000/powerpc-860.c: Likewise.
5934 * features/rs6000/powerpc-e500.c: Likewise.
5935 * features/rs6000/powerpc-e500l.c: Likewise.
5936 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5937 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5938 * features/rs6000/rs6000.c: Likewise.
5939
d71871bc
SDJ
59402012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5941
5942 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5943 variable.
5944 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5945 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5946 (stap_parse_argument) <e>: Likewise.
5947 (handle_stap_probe) <byte_order>: Likewise.
5948
fd820528
DE
59492012-04-30 Doug Evans <dje@google.com>
5950
5951 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5952 init_and_read_dies_worker. All callers updated.
5953 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5954 replaced with init_cutu_and_read_dies.
5955 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5956 (find_partial_die): Remove FIXME. Don't free current CU.
5957
ec3f619d 59582012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5959
5960 * contrib: New directory.
5961 * contrib/test_pubnames_and_indexes.py: New file.
5962
fceca515
DE
59632012-04-30 Doug Evans <dje@google.com>
5964
5965 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5966 All callers updated.
5967 (init_cu_die_reader): Verify the section is non-empty.
5968 (dwarf_decode_line_header): Don't dereference section->asection
5969 until we know the section is present.
5970
311fe7e1
SDJ
59712012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5972
5973 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5974 probes.
5975
5977971a
YQ
59762012-04-29 Yao Qi <yao@codesourcery.com>
5977
5978 * gdb-code-style.el: New hook gdb-markup-hook
5979 and gdb-comment-hook.
5980
dee91e82
DE
59812012-04-28 Doug Evans <dje@google.com>
5982
3019eac3
DE
5983 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5984 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5985 objfile->obfd.
5986 * symfile.h (dwarf2_debug_sections): New member addr.
5987 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5988 (ctx_no_get_addr_index): New function.
5989 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5990 (ctx_no_get_addr_index): Declare.
5991 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5992 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5993 (dwarf_expr_ctx_funcs): Update.
5994 (needs_get_addr_index): New function.
5995 (needs_frame_ctx_funcs): Update.
5996 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5997 * dwarf2read.c: #include "gdbcore.h".
5998 (dwarf2_per_objfile): New members addr, dwo_files.
5999 (dwarf2_elf_names): Add entry for addr.
6000 (struct dwo_section_names): New type.
6001 (dwo_section_names): New static global.
6002 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6003 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6004 old debug_types_section member updated to use this.
6005 Rename member debug_types_section to info_or_types_section,
6006 all uses updated.
6007 (signatured_type): Rename member type_offset to type_offset_in_tu,
6008 all uses updated. New member type_offset_in_section.
6009 (struct dwo_sections): New type.
6010 (struct dwo_unit): New type.
6011 (struct dwo_file): New type.
6012 (die_reader_specs): New member dwo_file.
6013 (dwarf2_locate_sections): Watch for .debug_addr.
6014 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6015 (dwarf2_read_section): Get bfd of section from bfd's asection,
6016 instead of objfile.
6017 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6018 (create_signatured_type_table_from_index): Initialize
6019 sig_type->info_or_types_section.
6020 (dw2_get_file_names): Statement lists for type units with DWO files
6021 live in the DWO file.
6022 (create_debug_types_hash_table): New function.
6023 (create_all_type_units): Rewrite.
6024 (init_cu_die_reader): New arg dwo_file, all callers updated.
6025 (init_and_read_dies_worker): Get section from
6026 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6027 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6028 continue reading the CU/TU from there.
6029 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6030 updated. Get section from this_cu->info_or_types_section.
6031 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6032 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6033 DW_FORM_GNU_str_index.
6034 (hash_dwo_file, eq_dwo_file): New functions.
6035 (allocate_dwo_file_hash_table): New function.
6036 (hash_dwo_unit, eq_dwo_unit): New functions.
6037 (allocate_dwo_unit_table): New function.
6038 (dwarf2_locate_dwo_sections): New function.
6039 (struct create_dwo_info_table_data): New type.
6040 (create_debug_info_hash_table_reader): New function.
6041 (create_debug_info_hash_table): New function.
6042 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6043 (lookup_dwo_file): New function.
6044 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6045 (free_dwo_file, free_dwo_file_cleanup): New functions.
6046 (free_dwo_file_from_slot, free_dwo_files): New functions.
6047 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6048 (dwarf2_record_block_ranges): Ditto.
6049 (read_partial_die): Ditto.
6050 (process_enumeration_scope): Update to use type_offset_in_section.
6051 (read_full_die_1): New function.
6052 (read_full_die): Rewrite.
6053 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6054 DW_FORM_GNU_str_index.
6055 (read_addr_index_1, read_addr_index): New functions.
6056 (read_addr_index_from_leb128): New function.
6057 (struct dwarf2_read_addr_index_data): New type.
6058 (dwarf2_read_addr_index_reader): New function.
6059 (dwarf2_read_addr_index): New function.
6060 (read_str_index): New function.
6061 (leb128_size): New function.
6062 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6063 If processing a type unit from a DWO file, get the line section
6064 from the DWO file.
6065 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6066 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6067 DW_FORM_GNU_str_index.
6068 (lookup_die_type): Check whether section offset of type's die is
6069 known before looking it up. Remove assert. Condition can
6070 legimately happen for inter-cu type references.
6071 (dwarf_attr_name): Handle Fission attributes.
6072 (dwarf_form_name): Handle Fission forms.
6073 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6074 DW_FORM_GNU_str_index.
6075 (follow_die_sig): Update to use type_offset_in_section.
6076 (decode_locdesc): New case DW_OP_GNU_addr_index.
6077 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6078 DW_FORM_GNU_str_index.
6079 (cu_debug_loc_section): New function.
6080 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6081 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6082 Free DWO files if present.
6083 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6084
dee91e82
DE
6085 Refactor DIE reading.
6086 * dwarf2read.c (dwarf2_per_objfile): Replace members
6087 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6088 (die_reader_specs): New member "die_section". Temporarily make
6089 member "buffer" non-const, pending constifying all info_ptr uses.
6090 (die_reader_func_ftype): New typedef.
6091 (dw2_get_file_names_reader): New function.
6092 (dw2_get_file_names): Rewrite.
6093 (read_and_check_type_unit_head): Rename arg type_offset to
6094 type_offset_in_tu.
6095 (create_all_type_units): Improve debugging message.
6096 Improve dummy type unit check.
6097 (init_cu_die_reader): New arg "section". All callers updated.
6098 (init_and_read_dies_worker): New function.
6099 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6100 (init_cutu_and_read_dies_no_follow): New function.
6101 (init_cutu_and_read_dies_simple): New function.
6102 (process_psymtab_comp_unit_reader): New function.
6103 (process_psymtab_comp_unit): Delete args section,
6104 is_debug_types_section. Rewrite. All callers updated.
6105 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6106 All callers updated. Rewrite.
6107 (load_partial_comp_unit_reader): New function.
6108 (load_partial_comp_unit): Rewrite.
6109 (skip_children): New arg reader. Delete args buffer, cu.
6110 All callers updated.
6111 (skip_one_die): New arg reader. Delete args buffer, cu.
6112 All callers updated.
6113 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6114 All callers updated.
6115 (load_full_comp_unit_reader): New function.
6116 (load_full_comp_unit): Rewrite.
6117 (read_comp_unit): Delete.
6118 (read_die_and_children_1): Delete, contents moved ...
6119 (read_die_and_children): ... here.
6120 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6121 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6122 All callers updated.
6123 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6124 All callers updated.
6125 (find_partial_die): Rewrite load_all_dies support.
6126 (read_attribute_value): New arg reader. Delete args abfd, cu.
6127 All callers updated.
6128 (read_attribute): New arg reader. Delete args abfd, cu.
6129 All callers updated.
6130 (load_full_type_unit): Add assert.
6131 (read_signatured_type_reader): New function.
6132 (read_signatured_type): Rewrite.
6133 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6134 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6135 All callers updated. Set per_cu->cu = NULL after freeing it.
6136 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6137 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6138 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6139 (set_die_type): Update.
6140 (get_die_type_at_offset): Update.
6141 (read_file_scope): Call prepare_one_comp_unit.
6142 (read_type_unit_scope): Ditto.
6143 (prepare_one_comp_unit): Set producer if present.
6144
72d59e0d
SDJ
61452012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6146
6147 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6148 gettext function on `error'.
6149
0fefef59
DE
61502012-04-27 Doug Evans <dje@google.com>
6151
6152 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6153 is empty.
6154
28106bc2
SDJ
61552012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6156 Tom Tromey <tromey@redhat.com>
6157
6158 * breakpoint.c (struct breakpoint_objfile_data)
6159 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6160 <exception_probes>: New fields.
6161 (free_breakpoint_probes): New function.
6162 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6163 `_Unwind_DebugHook'.
6164 (create_exception_master_breakpoint): Likewise.
6165 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6166 * infrun.c: Including necessary header files for handling SystemTap
6167 probes.
6168 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6169 via SystemTap probes.
6170 (check_exception_resume): Remove `func' argument. Handle exception
6171 unwinding breakpoint set via a SystemTap probe.
6172 (insert_exception_resume_from_probe): New function.
6173
55aa24fb
SDJ
61742012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6175 Tom Tromey <tromey@redhat.com>
6176 Jan Kratochvil <jan.kratochvil@redhat.com>
6177
6178 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6179 (COMMON_OBS): Likewise.
6180 (HFILES_NO_SRCDIR): Add `probe'.
6181 * NEWS: Mention support for static and SystemTap probes.
6182 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6183 SystemTap probes' arguments parser.
6184 * arm-linux-tdep.c: Including headers needed to perform the parsing
6185 of SystemTap probes' arguments.
6186 (arm_stap_is_single_operand): New function.
6187 (arm_stap_parse_special_token): Likewise.
6188 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6189 probes' arguments parser.
6190 * ax-gdb.c (require_rvalue): Removing static declaration.
6191 (gen_expr): Likewise.
6192 * ax-gdb.h (gen_expr): Declaring function.
6193 (require_rvalue): Likewise.
6194 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6195 (bkpt_probe_breakpoint_ops): New variable.
6196 (momentary_breakpoint_from_master): Set the `probe' value.
6197 (add_location_to_breakpoint): Likewise.
6198 (break_command_1): Using proper breakpoint_ops according to the
6199 argument passed by the user in the command line.
6200 (bkpt_probe_insert_location): New function.
6201 (bkpt_probe_remove_location): Likewise.
6202 (bkpt_probe_create_sals_from_address): Likewise.
6203 (bkpt_probe_decode_linespec): Likewise.
6204 (tracepoint_probe_create_sals_from_address): Likewise.
6205 (tracepoint_probe_decode_linespec): Likewise.
6206 (tracepoint_probe_breakpoint_ops): New variable.
6207 (trace_command): Using proper breakpoint_ops according to the
6208 argument passed by the user in the command line.
6209 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6210 static probes on breakpoints and tracepoints.
6211 * breakpoint.h (struct bp_location) <probe>: New field.
6212 * cli-utils.c (skip_spaces_const): New function.
6213 (extract_arg): Likewise.
6214 * cli-utils.h (skip_spaces_const): Likewise.
6215 (extract_arg): Likewise.
6216 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6217 * configure.ac: Append `stap-probe.o' to be generated when ELF
6218 support is present.
6219 * configure: Regenerate.
6220 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6221 * elfread.c: Include `probe.h' and `arch-utils.h'.
6222 (probe_key): New variable.
6223 (elf_get_probes): New function.
6224 (elf_get_probe_argument_count): Likewise.
6225 (elf_evaluate_probe_argument): Likewise.
6226 (elf_compile_to_ax): Likewise.
6227 (elf_symfile_relocate_probe): Likewise.
6228 (stap_probe_key_free): Likewise.
6229 (elf_probe_fns): New variable.
6230 (elf_sym_fns): Add `sym_probe_fns' value.
6231 (elf_sym_fns_lazy_psyms): Likewise.
6232 (elf_sym_fns_gdb_index): Likewise.
6233 (_initialize_elfread): Initialize objfile cache for static
6234 probes.
6235 * gdb_vecs.h (struct probe): New forward declaration.
6236 (probe_p): New VEC declaration.
6237 * gdbarch.c: Regenerate.
6238 * gdbarch.h: Regenerate.
6239 * gdbarch.sh (stap_integer_prefix): New variable.
6240 (stap_integer_suffix): Likewise.
6241 (stap_register_prefix): Likewise.
6242 (stap_register_suffix): Likewise.
6243 (stap_register_indirection_prefix): Likewise.
6244 (stap_register_indirection_suffix): Likewise.
6245 (stap_gdb_register_prefix): Likewise.
6246 (stap_gdb_register_suffix): Likewise.
6247 (stap_is_single_operand): New function.
6248 (stap_parse_special_token): Likewise.
6249 (struct stap_parse_info): Forward declaration.
6250 * i386-tdep.c: Including headers needed to perform the parsing
6251 of SystemTap probes' arguments.
6252 (i386_stap_is_single_operand): New function.
6253 (i386_stap_parse_special_token): Likewise.
6254 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6255 probes' arguments parser.
6256 * i386-tdep.h (i386_stap_is_single_operand): New function.
6257 (i386_stap_parse_special_token): Likewise.
6258 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6259 * mipsread.c (ecoff_sym_fns): Likewise.
6260 * objfiles.c (objfile_relocate1): Support relocation for static
6261 probes.
6262 * parse.c (prefixify_expression): Remove static declaration.
6263 (initialize_expout): Likewise.
6264 (reallocate_expout): Likewise.
6265 * parser-defs.h (initialize_expout): Declare function.
6266 (reallocate_expout): Likewise.
6267 (prefixify_expression): Likewise.
6268 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6269 of SystemTap probes' arguments.
6270 (ppc_stap_is_single_operand): New function.
6271 (ppc_stap_parse_special_token): Likewise.
6272 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6273 probes' arguments parser.
6274 * probe.c: New file, for generic statically defined probe support.
6275 * probe.h: Likewise.
6276 * s390-tdep.c: Including headers needed to perform the parsing of
6277 SystemTap probes' arguments.
6278 (s390_stap_is_single_operand): New function.
6279 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6280 probes' arguments parser.
6281 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6282 * stap-probe.c: New file, for SystemTap probe support.
6283 * stap-probe.h: Likewise.
6284 * symfile.h: Include `gdb_vecs.h'.
6285 (struct sym_probe_fns): New struct.
6286 (struct sym_fns) <sym_probe_fns>: New field.
6287 * symtab.c (init_sal): Initialize `probe' field.
6288 * symtab.h (struct probe): Forward declaration.
6289 (struct symtab_and_line) <probe>: New field.
6290 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6291 locations.
6292 (stop_tracing): Likewise.
6293 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6294
22d2b532
SDJ
62952012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6296 Tom Tromey <tromey@redhat.com>
6297
6298 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6299 and to compile agent expressions.
6300 * infrun.c (siginfo_make_value): New argument `ignore'.
6301 (siginfo_funcs): New struct.
6302 (_initialize_infrun): New argument when calling
6303 `create_internalvar_type_lazy'.
6304 * thread.c (thread_id_make_value): New argument `ignore'.
6305 (thread_funcs): New struct.
6306 (_initialize_thread): New argument when calling
6307 `create_internalvar_type_lazy'.
6308 * tracepoint.c (sdata_make_value): New argument `ignore'.
6309 (sdata_funcs): New struct.
6310 (_initialize_tracepoint): New argument when calling
6311 `create_internalvar_type_lazy'.
6312 * value.c (make_value): New struct.
6313 (create_internalvar_type_lazy): New argument `data'.
6314 (compile_internalvar_to_ax): New function.
6315 (value_of_internalvar): Properly handling `make_value' case.
6316 (clear_internalvar): Likewise.
6317 (show_convenience): Adding `TRY_CATCH' block.
6318 * value.h (internalvar_make_value): Delete, replace by...
6319 (struct internalvar_funcs): ... this.
6320 (create_internalvar_type_lazy) <fun>: Delete argument.
6321 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6322 (compile_internalvar_to_ax): New function.
6323 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6324 (tlb_funcs): New struct.
6325 (_initialize_windows_tdep): New argument when calling
6326 `create_internalvar_type_lazy'.
6327
91da1414
MW
63282012-04-27 Mark Wielaard <mjw@redhat.com>
6329
6330 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6331 see whether it is an address or a constant offset from DW_AT_low_pc.
6332 (dwarf2_record_block_ranges): Likewise.
6333 (read_partial_die): Likewise.
6334
4ab9d8ec
MW
63352012-04-26 Mark Wielaard <mjw@redhat.com>
6336
6337 * MAINTAINERS (Write After Approval): Add myself to the list.
6338
a0911fd0
MR
63392012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6340
6341 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6342 (proc_prettyprint_signal): Likewise.
6343 (proc_prettyprint_faultset): Likewise.
6344 (proc_prettyprint_fault): Likewise.
6345 (proc_prettyprint_actionset): Likewise.
6346 (proc_prettyprint_flags): Move to new proc-flags.c section.
6347 (proc_prettyfprint_flags): New prototype.
6348 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6349 (proc_syscall, proc_cursig): Likewise.
6350 (proc_set_kill_on_last_close): Likewise.
6351 (proc_unset_kill_on_last_close): Likewise.
6352 (proc_set_watchpoint): Make static.
6353 (proc_delete_dead_threads): Likewise.
6354 (procfs_set_watchpoint): Likewise.
6355 (_initialize_procfs): Add prototype.
6356 * proc-events.c: Include proc-utils.h.
6357 (init_syscall_table): Make static.
6358 * proc-api.c (_initialize_proc_api): Add prototype.
6359 * proc-flags.c: Include proc-utils.h.
6360
9009e1ae
MR
63612012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6362
6363 * configure.ac: Add AC_ARG_PROGRAM.
6364 * configure: Regenerate.
6365
4fae6e18
JK
63662012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 Fix DW_AT_lower_bound defaults for DWARF-4+.
6369 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6370 high. New variable low_default_is_valid. Implement DWARF-4+
6371 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6372 no default by the DWARF standard.
6373
14132e89 63742012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6375 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6376
6377 * infrun.c (handle_inferior_event): Move the check for return
6378 trampolines ahead of the check for function trampolines.
6379 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6380 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6381 (mips_str_mips16_ret_stub): Likewise.
6382 (mips_str_call_fp_stub): Likewise.
6383 (mips_str_call_stub): Likewise.
6384 (mips_str_fn_stub): Likewise.
6385 (mips_str_pic): Likewise.
6386 (mips_in_frame_stub): New function.
6387 (mips_unwind_pc): Return the return address rather than the PC
6388 if the PC of an intermediate frame is inside a call thunk.
6389 (mips_is_stub_suffix): New function.
6390 (mips_is_stub_mode): Likewise.
6391 (mips_get_mips16_fn_stub_pc): Likewise.
6392 (mips_skip_mips16_trampoline_code): Update to handle all the
6393 currently generated stub types. Don't recurse into __fn_stub
6394 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6395 Use cooked register accesses.
6396 (mips_in_return_stub): Reintroduce function.
6397 (mips_skip_trampoline_code): Traverse trampolines recursively.
6398 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6399
518f0db5 64002012-04-26 Joel Brobecker <brobecker@adacore.com>
6401
6402 GDB 7.4.1 released.
6403
3184d3f9
JL
64042012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6405
6406 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6407 * features/arm-with-m-vfp-d16.xml: New file. Describes
6408 Cortex-M with VFPv4-sp-d16 FPU register layout.
6409 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6410 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6411 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6412 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6413 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6414
b6201d44
DE
64152012-04-25 Doug Evans <dje@google.com>
6416
6417 * cli/cli-decode.c (print_doc_line): Use stream instead of
6418 current_uiout.
6419
4e2f8df6
SDJ
64202012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6421
6422 * features/arm-with-iwmmxt.c: Regenerate.
6423 * features/arm-with-m-fpa-layout.c: Likewise.
6424 * features/arm-with-m.c: Likewise.
6425 * features/arm-with-neon.c: Likewise.
6426 * features/arm-with-vfpv2.c: Likewise.
6427 * features/arm-with-vfpv3.c: Likewise.
6428 * features/mips-dsp-linux.c: Likewise.
6429 * features/mips-linux.c: Likewise.
6430 * features/mips64-dsp-linux.c: Likewise.
6431 * features/mips64-linux.c: Likewise.
6432 * features/s390-linux32.c: Likewise.
6433 * features/s390-linux32v1.c: Likewise.
6434 * features/s390-linux32v2.c: Likewise.
6435 * features/s390-linux64.c: Likewise.
6436 * features/s390-linux64v1.c: Likewise.
6437 * features/s390-linux64v2.c: Likewise.
6438 * features/s390x-linux64.c: Likewise.
6439 * features/s390x-linux64v1.c: Likewise.
6440 * features/s390x-linux64v2.c: Likewise.
6441 * features/tic6x-c62x-linux.c: Likewise.
6442 * features/tic6x-c62x.c: Likewise.
6443 * features/tic6x-c64x-linux.c: Likewise.
6444 * features/tic6x-c64x.c: Likewise.
6445 * features/tic6x-c64xp-linux.c: Likewise.
6446 * features/tic6x-c64xp.c: Likewise.
6447 * target-descriptions.c: Only generate `field_type' and `type'
6448 variables when needed.
6449
2def3e66
JB
64502012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6451
6452 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6453
a766d390
DE
64542012-04-25 Doug Evans <dje@google.com>
6455
6456 Initial pass at Go language support.
6457 * NEWS: Mention Go.
6458 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6459 go-valprint.c.
6460 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6461 (YYFILES): Add go-exp.c.
6462 (YYOBJ): Add go-exp.o.
6463 (local-maintainer-clean): Delete go-exp.c.
6464 * defs.h (enum language): Add language_go.
6465 * dwarf2read.c: #include "go-lang.h".
6466 (fixup_go_packaging): New function.
6467 (process_full_comp_unit): Call it when processing Go CUs.
6468 (dwarf2_physname): Add Go support.
6469 (read_file_scope): Handle missing language spec for GNU Go.
6470 (set_cu_language): Handle DW_LANG_Go.
6471 * go-exp.y: New file.
6472 * go-lang.h: New file.
6473 * go-lang.c: New file.
6474 * go-typeprint.c: New file.
6475 * go-valprint.c: New file.
6476 * symtab.c: #include "go-lang.h".
6477 (symbol_set_language): Handle language_go.
6478 (symbol_find_demangled_name, symbol_set_names): Ditto.
6479 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6480
4e2af517
JM
64812012-04-24 Jim Meyering <meyering@redhat.com>
6482
6483 avoid a few strncpy-induced buffer overruns
6484 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6485 fname and psargs before trying to concatenate.
6486 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6487 "name" before applying strchr.
6488
b77b7f52
SCR
64892012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6490
6491 * CONTRIBUTE: Use unified diff instead of context diff when
6492 generating patches.
6493
6321c22a
MR
64942012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6495
6496 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6497 code. Handle JR.HB correctly.
6498
742c84f6
MR
64992012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6500
6501 * mips-tdep.c
6502 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6503 with the other MIPS16 helpers.
6504
7fc7e0c3
SDJ
65052012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6506
6507 * observer.sh: Conditionally declare `args', thus cleaning up
6508 unused instances of this variable.
6509
20388dd6
YQ
65102012-04-24 Yao Qi <yao@codesourcery.com>
6511
6512 Revert this patch to allow breakpoint always-inserted
6513 in record target.
6514 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6515 * breakpoint.c: Include record.h.
6516 (breakpoints_always_inserted_mode): Return false when the record
6517 target is in use.
20388dd6
YQ
6518
6519 * breakpoint.c (iterate_over_bp_locations): New.
6520 * breakpoint.h: Declare.
6521 New typedef walk_bp_location_callback.
6522 * record.c (record_open): Call record_init_record_breakpoints.
6523 (record_sync_record_breakpoints): New.
6524 (record_init_record_breakpoints): New.
6525 * NEWS: Mention supporting breakpoint always-inserted mode in
6526 record target.
6527
4734f50e
MK
65282012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6529
6530 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6531 any thread.
6532
c326b90e
YQ
65332012-04-24 Yao Qi <yao@codesourcery.com>
6534
6535 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6536 (is_catchpoint): ... it.
6537 (print_one_breakpoint_location): Caller update.
6538 * breakpoint.h: Update declaration.
6539
d8fb5a1e
DM
65402012-04-23 David S. Miller <davem@davemloft.net>
6541
6542 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6543
34431a2a
TT
65442012-04-23 Tom Tromey <tromey@redhat.com>
6545
6546 * buildsym.c (add_free_pendings): Remove.
6547 * buildsym.h (add_free_pendings): Remove.
6548
4568ecf9
DE
65492012-04-23 Doug Evans <dje@google.com>
6550
6551 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6552 attr.u.unsnd instead of attr.u.addr.
6553 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6554 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6555 DW_FORM_ref_udata.
6556 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6557 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6558 DW_FORM_ref_udata.
6559 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6560
dca9aa3a
MR
65612012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6562
6563 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6564 (mips_o32_return_value): Likewise.
6565 (mips_o64_return_value): Likewise.
6566
c8ea1972
PH
65672012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6568
6569 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6570 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6571 their treatment in eval.c.
c8ea1972 6572
8d1b3521
DM
65732012-04-21 David S. Miller <davem@davemloft.net>
6574
6575 * sparc-tdep.c (X_DISP10): Define.
6576 (sparc_analyze_control_transfer): Handle compare-and-branch.
6577
03145bf4
JL
65782012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6579
6580 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6581 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6582
004159a2 65832012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6584 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6585
6586 * mips-tdep.c (mips_float_register_p): New function.
6587 (mips_convert_register_float_case_p): Use mips_float_register_p.
6588 (mips_register_type): Likewise.
6589 (mips_print_register): Likewise.
6590 (print_gp_register_row): Likewise.
6591 (mips_print_registers_info): Likewise.
6592
7f0e6aae
MR
65932012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6594
6595 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6596 of mips16 symbols.
6597
bc17beea
AP
65982012-04-20 Andrew Pinski <apinski@cavium.com>
6599
6600 * MAINTAINERS (Write After Approval): Add myself to the list.
6601
1730a5a5
SDJ
66022012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6603
6604 * MAINTAINERS: Update my e-mail address.
6605
38ea300a
PA
66062012-04-20 Pedro Alves <palves@redhat.com>
6607
6608 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6609 $srcdir.
6610 * configure: Regenerate.
6611
111dfaae
SDJ
66122012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6613
6614 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6615 declaration.
6616 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6617
4fb2c64a
JK
66182012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6619
6620 Fix compilation compatibility with python-2.4
6621 * python/py-type.c (convert_field): Cast ADDRSTRING for
6622 PyObject_SetAttrString as non-const. New comment.
6623
6328eb38
TT
66242012-04-19 Tom Tromey <tromey@redhat.com>
6625
6626 * top.c (quit_target): Use all_cleanups.
6627 * main.c (captured_command_loop): Use all_cleanups.
6628 * exceptions.c (throw_exception): Use all_cleanups.
6629
c971b7fa
PA
66302012-04-19 Pedro Alves <palves@redhat.com>
6631
6632 * Makefile.in (GNULIB_BUILDDIR): New.
6633 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6634 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6635 (CLEANDIRS). Remove gnulib/import.
6636 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6637 (all-lib): Ditto.
6638 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6639 (gnulib/import/Makefile): Replace gnulib/import with
6640 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6641 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6642 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6643 acx_configure_dir.m4.
6644 * acinclude.m4: Include acx_configure_dir.m4.
6645 * acx_configure_dir.m4: New file.
6646 * aclocal.m4: Regenerate.
a09130f9
PA
6647 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6648 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6649 (GNULIB): New variable.
6650 (GNULIB_STDINT_H): Adjust.
6651 (AC_OUTPUT): Don't output gnulib/Makefile.
6652 * gdb/defs.h: Include build-gnulib/config.h.
6653 * aclocal.m4: Regenerate.
6654 * config.in: Regenerate.
6655 * configure: Regenerate.
6656
6657 * gnulib/Makefile.in: New file.
6658 * gnulib/configure.ac: New file.
6659 * gnulib/aclocal.m4: New file.
6660 * gnulib/config.in: New file.
6661 * gnulib/configure: New file.
c971b7fa
PA
6662 * gnulib/: Re-run gnulib-tool to adjust.
6663
b10faa68
DE
66642012-04-19 Doug Evans <dje@google.com>
6665
6666 * cleanups.h (struct cleanup): Move to cleanups.c.
6667 (make_cleanup_dtor_ftype): New typedef.
6668 (make_cleanup_dtor): Use it.
6669 (ALL_CLEANUPS): Replace with ...
6670 (all_cleanups): ... this. Declare. All uses updated.
6671 * cleanups.c: #include "gdb_assert.h".
6672 (sentinel_cleanup): New static global.
6673 (SENTINEL_CLEANUP): Define.
6674 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6675 (make_my_cleanup2): Assert result is non-NULL.
6676 (all_cleanups): New function.
6677 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6678 of NULL.
6679
d8c267cc
PA
66802012-04-19 Pedro Alves <palves@redhat.com>
6681
6682 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6683 Adjust paths to gnulib imported files.
6684
809277f8
PA
66852012-04-19 Pedro Alves <palves@redhat.com>
6686
6687 * gnulib/: Move whole directory ...
6688 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6689 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6690 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6691 (aclocal_m4_deps): Adjust.
6692 * aclocal.m4: Regenerate.
6693 * configure: Regenerate.
6694 * configure.ac: Adjust AC_OUTPUT output.
6695
aad9eab9
YQ
66962012-04-19 Yao Qi <yao@codesourcery.com>
6697
6698 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6699 (vec.o): New rule.
6700 * vec.c: Move it ...
6701 * common/vec.c: ... here.
6702 * vec.h: Move it ...
6703 * common/vec.h: ... here.
6704
48fe4669
YQ
67052012-04-19 Yao Qi <yao@codesourcery.com>
6706
6707 * gdb-code-style.el: New.
6708
770d76d7
PA
67092012-04-18 Pedro Alves <palves@redhat.com>
6710
6711 Update gnulib from latest git.
6712 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6713
6714 * gnulib/Makefile.am: Update.
6715 * gnulib/dummy.c: Update.
6716 * gnulib/extra/arg-nonnull.h: Update.
6717 * gnulib/extra/c++defs.h: Update.
6718 * gnulib/extra/update-copyright: Update.
6719 * gnulib/extra/warn-on-use.h: Update.
6720 * gnulib/inttypes.in.h: Update.
6721 * gnulib/m4/00gnulib.m4: Update.
6722 * gnulib/m4/extensions.m4: Update.
6723 * gnulib/m4/gnulib-cache.m4: Update.
6724 * gnulib/m4/gnulib-common.m4: Update.
6725 * gnulib/m4/gnulib-comp.m4: Update.
6726 * gnulib/m4/gnulib-tool.m4: Update.
6727 * gnulib/m4/include_next.m4: Update.
6728 * gnulib/m4/inttypes-pri.m4: Update.
6729 * gnulib/m4/inttypes.m4: Update.
6730 * gnulib/m4/longlong.m4: Update.
6731 * gnulib/m4/memchr.m4: Update.
6732 * gnulib/m4/memmem.m4: Update.
6733 * gnulib/m4/mmap-anon.m4: Update.
6734 * gnulib/m4/multiarch.m4: Update.
6735 * gnulib/m4/onceonly.m4: Update.
6736 * gnulib/m4/stddef_h.m4: Update.
6737 * gnulib/m4/stdint.m4: Update.
6738 * gnulib/m4/string_h.m4: Update.
6739 * gnulib/m4/warn-on-use.m4: Update.
6740 * gnulib/m4/wchar_h.m4: Update.
6741 * gnulib/m4/wchar_t.m4: Update.
6742 * gnulib/m4/wint_t.m4: Update.
6743 * gnulib/memchr.c: Update.
6744 * gnulib/memmem.c: Update.
6745 * gnulib/stddef.in.h: Update.
6746 * gnulib/stdint.in.h: Update.
6747 * gnulib/str-two-way.h: Update.
6748 * gnulib/string.in.h: Update.
6749 * gnulib/wchar.in.h: Update.
6750
6751 * gnulib/extra/arg-nonnull.h: Delete.
6752 * gnulib/extra/c++defs.h: Delete.
6753 * gnulib/extra/warn-on-use.h: Delete.
6754 * gnulib/m4/wchar_h.m4: Delete.
6755 * gnulib/m4/wint_t.m4: Delete.
6756 * gnulib/wchar.in.h: Delete.
6757
6758 * gnulib/extra/snippets/arg-nonnull.h: New.
6759 * gnulib/extra/snippets/c++defs.h: New.
6760 * gnulib/extra/snippets/warn-on-use.h: New.
6761
6762 * aclocal.m4: Regenerate.
6763 * config.in: Regenerate.
6764 * configure: Regenerate.
6765 * gnulib/Makefile.in: Regenerate.
6766
174e088e
PA
67672012-04-18 Pedro Alves <palves@redhat.com>
6768
6769 Reimport the update-copyright module from gnulib
6770 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6771
6772 * configure: Regenerate.
6773 * gnulib/Makefile.am: Update.
6774 * gnulib/Makefile.in: Regenerate.
6775 * gnulib/extra/update-copyright: Update.
6776 * gnulib/m4/gnulib-cache.m4: Update.
6777 * gnulib/m4/gnulib-comp.m4: Update.
6778
7f533142
JB
67792012-04-18 Tristan Gingold <gingold@adacore.com>
6780
6781 * configure.ac (aix): Put -lpthread into libs.
6782 * configure: Regenerate.
6783
001822aa
TT
67842012-04-18 Tom Tromey <tromey@redhat.com>
6785
6786 * linespec.c (convert_linespec_to_sals): Don't use
6787 SYMBOL_OBJ_SECTION.
6788 (compare_msymbols): Arguments are minsym_and_objfile, not
6789 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6790
db026a31
PA
67912012-04-18 Pedro Alves <palves@redhat.com>
6792
6793 Revert gnulib/ part of:
6794 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6795 Copyright year update in most files (performed by copyright.sh).
6796
12df843f
JK
67972012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6798
6799 Fix 64-bit constants on 32-bit hosts.
6800 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6801 from unsigned long to ULONGEST.
6802 (read_signed_leb128): Change declaration return type from long to
6803 LONGEST.
6804 (dwarf2_const_value_attr): Change declaration parameter value from long
6805 to LONGEST.
6806 (dwarf2_compute_name): Change variable value from long to LONGEST.
6807 (read_unsigned_leb128): Change return type, variable result and some
6808 casts from unsigned long to ULONGEST.
6809 (read_signed_leb128): Change return type, variable result and some
6810 casts from long to LONGEST.
6811 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6812 value from long to LONGEST.
6813 (dwarf2_const_value): Change variable value from long to LONGEST.
6814 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6815 plongest and hex_string.
6816 * symtab.h (struct general_symbol_info): Change ivalue from long to
6817 LONGEST, remove the comment.
6818 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6819 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6820
14e75d8e
JK
68212012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6822
6823 PR symtab/7259:
6824 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6825 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6826 (ada_discrete_type_low_bound): Fix function comment. Use
6827 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6828 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6829 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6830 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6831 Use TYPE_FIELD_ENUMVAL.
6832 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6833 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6834 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6835 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6836 TYPE_CODE_ENUM.
6837 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6838 * dwarf2read.c (process_enumeration_scope): Likewise.
6839 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6840 field.bitpos.
6841 (class StructMainTypePrettyPrinter): Support also
6842 FIELD_LOC_KIND_ENUMVAL.
6843 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6844 TYPE_CODE_ENUM.
6845 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6846 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6847 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6848 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6849 field enumval.
6850 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6851 accommodate enumval.
6852 (struct call_site): Adjust loc_kind to accommodate enumval.
6853 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6854 (TYPE_FIELD_ENUMVAL): New macros.
6855 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6856 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6857 TYPE_CODE_ENUM.
6858 * p-typeprint.c (pascal_type_print_base): Likewise.
6859 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6860 enumval.
6861 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6862 * python/py-type.c (convert_field): New variable addrstring. Use
6863 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6864 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6865 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6866 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6867 TYPE_CODE_ENUM.
6868 * valprint.c (generic_val_print): Likewise.
6869
380bca97
DE
68702012-04-17 Doug Evans <dje@google.com>
6871
dcc07052
DE
6872 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6873
380bca97
DE
6874 * dwarf2read.c: Whitespace fixes.
6875 (lookup_signatured_type): Tweak comment.
6876 (get_die_type_at_offset): Fix comment.
6877
ec92004f
JB
68782012-04-17 Joel Brobecker <brobecker@adacore.com>
6879
6880 * xcoffread.c (xcoff_secnum_to_sections): New function.
6881 (secnum_to_section, secnum_to_bfd_section): Reimplement
6882 using xcoff_secnum_to_sections. Rename "secnum" parameter
6883 into "n_scnum".
6884 (RECORD_MINIMAL_SYMBOL): Delete.
6885 (record_minimal_symbol): New function.
6886 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6887 by call to record_minimal_symbol and set misc_func_recorded
6888 to 1. Set last_csect_sec to the XCOFF section index instead
6889 of GDB's section_offset index. Update calls to
6890 prim_record_minimal_symbol_and_info to pass the BFD section
6891 as well.
6892
40301fb7
JB
68932012-04-17 Joel Brobecker <brobecker@adacore.com>
6894
6895 * xcoffread.c (read_xcoff_symtab): Delete variables
6896 last_csect_val and last_csect_sec and associated code.
6897
e0088cfd
DE
68982012-04-17 Doug Evans <dje@google.com>
6899
58d5e2c3
DE
6900 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6901 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6902 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6903 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6904
c27f5738
DE
6905 * cleanups.h: New file.
6906 * cleanups.c: New file.
6907 * Makefile.in (SFILES): Add cleanups.c.
6908 (HFILES_NO_SRCDIR): Add cleanups.h.
6909 (COMMON_OBS): Add cleanups.o.
6910 * defs.h (struct cleanup): Moved to cleanups.h.
6911 (do_cleanups,do_final_cleanups): Ditto.
6912 (discard_cleanups,discard_final_cleanups): Ditto
6913 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6914 (save_cleanups,save_final_cleanups): Ditto.
6915 (restore_cleanups,restore_final_cleanups): Ditto.
6916 (null_cleanup): Ditto.
6917 (make_my_cleanup,make_my_cleanup2): Ditto.
6918 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6919 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6920 (do_cleanups,do_final_cleanups): Ditto.
6921 (discard_cleanups,discard_final_cleanups): Ditto
6922 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6923 (save_cleanups,save_final_cleanups): Ditto.
6924 (restore_cleanups,restore_final_cleanups): Ditto.
6925 (null_cleanup): Ditto.
6926 (make_my_cleanup,make_my_cleanup2): Ditto.
6927 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6928
e0088cfd
DE
6929 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6930 make_my_cleanup.
6931 (make_cleanup_dyn_string_delete): Ditto.
6932 (make_cleanup_ui_file_delete): Ditto.
6933 (make_cleanup_ui_out_redirect_pop): Ditto.
6934 (make_cleanup_free_section_addr_info): Ditto.
6935 (make_cleanup_restore_integer): Ditto.
6936 (make_cleanup_unpush_target): Ditto.
6937 (make_cleanup_value_free_to_mark): Ditto.
6938 (make_cleanup_value_free): Ditto.
6939 (make_cleanup_free_so): Ditto.
6940
4dc84fd1
JK
69412012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 New option "set debug auto-load".
6944 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6945 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6946 (auto_load_safe_path_vec_update)
6947 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6948 if DEBUG_AUTO_LOAD.
6949 (file_is_auto_load_safe): New parameters debug_fmt and ....
6950 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6951 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6952 caller by explanatory string.
6953 (_initialize_auto_load): Register "set debug auto-load".
6954 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6955 and ....
6956 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6957 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6958 by explanatory string.
6959 * main.c (captured_main): Likewise.
6960 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6961 (source_section_scripts): Likewise.
6962
bccbefd2
JK
69632012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6964
6965 New option "set auto-load safe-path".
6966 * NEWS: New commands "set auto-load safe-path"
6967 and "show auto-load safe-path".
6968 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6969 (auto_load_safe_path, auto_load_safe_path_vec)
6970 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6971 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6972 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6973 (source_gdb_script_for_objfile): New variable is_safe. Call
6974 file_is_auto_load_safe. Return if it is not.
6975 (struct loaded_script): New field loaded.
6976 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6977 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6978 output "Missing" to "No".
6979 (_initialize_auto_load): New variable cmd. Initialize
6980 auto_load_safe_path. Register "set auto-load safe-path",
6981 "show auto-load safe-path" and "add-auto-load-safe-path".
6982 * auto-load.h (maybe_add_script): Add parameter loaded.
6983 (file_is_auto_load_safe): New declaration.
6984 * config.in: Regenerate.
6985 * configure: Regenerate.
6986 * configure.ac: New parameters --with-auto-load-safe-path
6987 and --without-auto-load-safe-path.
6988 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6989 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6990 * main.c (captured_main): Check file_is_auto_load_safe for
6991 LOCAL_GDBINIT.
6992 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6993 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6994 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6995 not.
6996
bf88dd68
JK
69972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6998
6999 auto-load: Implementation.
7000 * NEWS: New descriptions for "info auto-load",
7001 "info auto-load gdb-scripts", "info auto-load python-scripts",
7002 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7003 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7004 and "show auto-load-scripts". New description for "set auto-load",
7005 "show auto-load", "set auto-load gdb-scripts",
7006 "show auto-load gdb-scripts", "set auto-load python-scripts",
7007 "show auto-load python-scripts", "set auto-load local-gdbinit",
7008 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7009 "show auto-load libthread-db".
7010 * auto-load.c: Remove include python/python-internal.h. Add includes
7011 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7012 cli/cli-setshow.h.
7013 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7014 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7015 (gdbpy_global_auto_load): Rename to ...
7016 (global_auto_load): ... here.
7017 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7018 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7019 (script_language_gdb, source_gdb_script_for_objfile): New.
7020 (struct loaded_script): New field language.
7021 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7022 LANGUAGE.
7023 (maybe_add_script): Add parameter language. Drop redundant
7024 entry.full_path initialization. Initialize entry.language and
7025 (*slot)->language.
7026 (auto_load_objfile_script): Change parameter suffix to language.
7027 Remove the call of maybe_add_script.
7028 Call language->source_script_for_objfile.
7029 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7030 New.
7031 (collect_matching_scripts): Adjust it for
7032 struct collect_matching_scripts_data.
7033 (auto_load_info_scripts_pattern_nl): New variable.
7034 (info_auto_load_scripts): Rename to ...
7035 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7036 for struct collect_matching_scripts_data.
7037 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7038 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7039 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7040 (auto_load_info_cmdlist_get): New.
7041 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7042 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7043 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7044 "info auto-load local-gdbinit".
7045 * auto-load.h (struct script_language): New.
7046 (gdbpy_global_auto_load): Rename to ...
7047 (global_auto_load): ... here.
7048 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7049 (auto_load_local_gdbinit_loaded): New declarations.
7050 (maybe_add_script): New parameter language.
7051 (auto_load_objfile_script): Change parameter suffix to language.
7052 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7053 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7054 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7055 declarations.
7056 * linux-thread-db.c: Include auto-load.h and ctype.h.
7057 (auto_load_thread_db, show_auto_load_thread_db): New.
7058 (struct thread_db_info): New field filename.
7059 (delete_thread_db_info): Call xfree for FILENAME.
7060 (try_thread_db_load): Initialize FILENAME.
7061 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7062 if !AUTO_LOAD_THREAD_DB.
7063 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7064 (_initialize_thread_db): Install auto_load_thread_db
7065 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7066 as "info auto-load libthread-db".
7067 * main.c (captured_main): Rename gdbpy_global_auto_load to
7068 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7069 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7070 (print_gdb_help): Extend the help for 'local init file'.
7071 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7072 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7073 (auto_load_scripts): Rename to ...
7074 (auto_load_python_scripts): ... here, update the comment.
7075 (gdbpy_load_auto_script_for_objfile): New declaration.
7076 (show_auto_load_python_scripts, script_language_python)
7077 (gdbpy_load_auto_script_for_objfile): New.
7078 (source_section_scripts): Refactor the code.
7079 (load_auto_scripts_for_objfile): Rename to ...
7080 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7081 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7082 (info_auto_load_python_scripts): New.
7083 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7084 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7085 Register "set auto-load-scripts" as its deprecated alias. Register
7086 "info auto-load python-scripts". Register "info auto-load-scripts" as
7087 its deprecated alias.
7088 (load_auto_scripts_for_objfile): Rename to ...
7089 (gdbpy_load_auto_scripts_for_objfile): ... here.
7090 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7091 (gdbpy_load_auto_scripts_for_objfile): ... here.
7092
e2207b9a
JK
70932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 auto-load: Move files.
7096 * Makefile.in (SFILES): Add auto-load.c.
7097 (HFILES_NO_SRCDIR): Add auto-load.h.
7098 (COMMON_OBS): Add auto-load.o.
7099 (distclean): Change .gdbinit for gdb-gdb.gdb.
7100 * auto-load.c: New file, with parts from python/py-auto-load.c.
7101 * auto-load.h: New file, with parts from python/python.h.
7102 * configure: Regenerate.
7103 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7104 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7105 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7106 * main.c: Include auto-load.h.
7107 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7108 command.h, observer.h and progspace.h to auto-load.c. Add include
7109 auto-load.h.
7110 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7111 (struct loaded_script, auto_load_pspace_data)
7112 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7113 (hash_loaded_script_entry, eq_loaded_script_entry)
7114 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7115 (maybe_add_script): Move to auto-load.c.
7116 (source_section_scripts): Change maybe_add_script parameters passing,
7117 use script_not_found_warning_print.
7118 (clear_section_scripts, auto_load_objfile_script)
7119 (auto_load_new_objfile, loaded_script_ptr)
7120 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7121 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7122 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7123 auto_load_new_objfile and info_auto_load_scripts initizations to
7124 auto-load.c.
7125 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7126
e4ab2fad
JK
71272012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7128
7129 Code cleanup.
7130 * charset.c (find_charset_names): Remove variables ix and elt.
7131 Use free_char_ptr_vec.
7132 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7133 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7134 debugdir_end. New variable debugdir_len.
7135 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7136 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7137 declarations.
7138 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7139 and elt. Use free_char_ptr_vec.
7140 * source.c (add_path): Remove variables argv, arg and argv_index.
7141 New variables dir_vec, back_to, ix and name.
7142 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7143 make_cleanup_freeargv. Remove variable separator. Simplify the code
7144 no longer expecting DIRNAME_SEPARATOR.
7145 (openp): Remove variable p, p1 and len. New variables dir_vec,
7146 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7147 no longer expecting DIRNAME_SEPARATOR.
7148 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7149 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7150 debugdir_end.
7151 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7152 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7153 (dirnames_to_char_ptr_vec): New functions.
7154
5ee4ed9f
JK
71552012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7156
7157 Code cleanup.
7158 * source.c (add_path): Remove always true conditional 'p == 0' and
7159 unindent its code block.
7160
f41f5e61
PA
71612012-04-17 Pedro Alves <palves@redhat.com>
7162
7163 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7164 (FIELD_BITPOS_LVAL): ... this.
7165 (FIELD_BITPOS): New.
7166 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7167 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7168 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7169 SET_FIELD_BITPOS.
7170 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7171 SET_FIELD_BITPOS.
7172 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7173 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7174 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7175 SET_FIELD_BITPOS.
7176
945b3a32
JK
71772012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7178
7179 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7180 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7181 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7182 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7183 * jv-lang.c (java_link_class_type): Likewise, once.
7184 * stabsread.c (read_enum_type): Likewise.
7185
42476b70
YQ
71862012-04-16 Yao Qi <yao@codesourcery.com>
7187
7188 * common/agent.c (agent_run_command): Add one more parameter `len'.
7189 Update callers.
7190 * common/agent.h: Update declaration.
7191 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7192 Update.
7193 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7194
8264ba82
AG
71952012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7196
7197 PR mi/13393
7198 * value.c (value_actual_type): New function.
7199 * value.h (value_actual_type): New declaration.
7200 * varobj.c (update_type_if_necessary): New function.
7201 (varobj_create): Call value_actual_type instead of
7202 value_type.
7203 (install_dynamic_child): distinct changed and type changed MI variable
7204 objects.
7205 (update_dynamic_varobj_children): Updated for install_dynamic_child
7206 change. All callers updated.
a09130f9 7207 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7208 the value changed and RTTI is used to determine the type.
7209 (create_child_with_value): Call value_actual_type instead of
7210 value_type.
a09130f9 7211 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7212 specify whether the given value should be casted to enclosing type.
7213 All callers updated.
7214
55a8c076
YQ
72152012-04-14 Yao Qi <yao@codesourcery.com>
7216
7217 Import gnulib module inttypes from git
7218 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7219 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7220 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7221 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7222 * aclocal.m4, config.in, configure: Regenerated.
7223 * gnulib/Makefile.am: Update.
7224 * gnulib/Makefile.in: Update.
7225 * gnulib/m4/gnulib-cache.m4: Update.
7226 * gnulib/m4/gnulib-comp.m4: Update.
7227 * gnulib/inttypes.in.h: New.
7228 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7229 * gnulib/m4/inttypes.m4: New.
55a8c076 7230
ca7781d2
LM
72312012-04-13 Luis Machado <lgustavo@codesourcery.com>
7232
7233 * infrun.c (resume): Update PC address to the real PC after
7234 preparing to do displaced stepping.
7235
e319fa28
DE
72362012-04-12 Doug Evans <dje@google.com>
7237
7238 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7239 All callers updated.
7240
15add3f5
MK
72412012-04-12 Mark Kettenis <kettenis@gnu.org>
7242
7243 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7244
52dc124a
DE
72452012-04-12 Doug Evans <dje@google.com>
7246
0e50663e
DE
7247 * dwarf2read.c (create_all_type_units): Renamed from
7248 create_debug_types_hash_table. All callers updated.
7249
52dc124a
DE
7250 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7251 local type_sig to sig_type, type_offset to type_offset_in_tu.
7252 (hash_signatured_type): Renamed from hash_type_signature,
7253 all callers updated.
7254 (eq_signatured_type): Renamed from eq_type_signature,
7255 all callers updated.
7256 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7257 (process_enumeration_scope): Ditto.
7258 (lookup_signatured_type_at_offset): Ditto.
7259 (load_full_type_unit, read_signatured_type): Ditto.
7260
248fd3bf
YQ
72612012-04-12 Yao Qi <yao@codesourcery.com>
7262
7263 * remote.c (async_remote_interrupt): Correct function name in
7264 debug message.
7265 (async_remote_interrupt_twice): Ditto.
7266
bc3aa6c3
DE
72672012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7268
7269 * source.c (find_and_open_source): Consistently pass resulting
7270 full path through xfullpath.
7271
9e529e1d
JK
72722012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7273
7274 Provide more specific displaced-stepping memory error message.
7275 * infrun.c (displaced_step_prepare): New variable status. Call
7276 target_read_memory instead of read_memory, provide more specific
7277 error message.
7278
82e0cec1
TG
72792012-04-11 Tristan Gingold <gingold@adacore.com>
7280
7281 PR gdb/13901
7282 * darwin-nat.c (darwin_execvp): Revert previous patch.
7283
d987a266
TG
72842012-04-11 Tristan Gingold <gingold@adacore.com>
7285
7286 PR gdb/13901
7287 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7288 in case of change.
7289
016b7430
TG
72902012-04-11 Tristan Gingold <gingold@adacore.com>
7291
7292 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7293 warning.
7294
06fc020f
SCR
72952012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7296
7297 New command 'explore' which helps explore values and types in
7298 scope.
7299 * NEWS: Add an entry about the new 'explore' command.
7300 * data-directory/Makefile.in: Add gdb/command/explore.py
7301 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7302 command using the GDB Python API.
06fc020f 7303
de0919f8 73042012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7305
7306 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7307 extension in jump target calculation.
7308
de0919f8 73092012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7310
7311 * mips-tdep.c (mips32_next_pc): Handle JALX.
7312
2f26ef89
YQ
73132012-04-10 Yao Qi <yao@codesourcery.com>
7314
7315 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7316
2e505b66
YQ
73172012-04-10 Yao Qi <yao@codesourcery.com>
7318
7319 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7320 and gnulib/m4/gnulib-tool.m4.
7321
0d99eb77
DE
73222012-04-10 Doug Evans <dje@google.com>
7323
7324 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7325 (load_partial_dies): Clarify comment.
7326 (find_partial_die): Support rereading type units.
7327 Clarify CU handling, if we know offset is in CU, don't search for the
7328 containing CU. Add comment regarding memory waste.
7329
9a82b8ff
L
73302012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7331
7332 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7333 i386/x32-avx and i386/x32-avx-linux.
7334 (i386/x32-expedite): New.
7335 (i386/x32-linux-expedite): Likewise.
7336 (i386/x32-avx-expedite): Likewise.
7337 (i386/x32-avx-linux-expedite): Likewise.
7338 ($(outdir)/i386/x32.dat): Likewise.
7339 ($(outdir)/i386/x32-linux.dat): Likewise.
7340 ($(outdir)/i386/x32-avx.dat): Likewise.
7341 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7342
7343 * features/i386/x32-avx-linux.xml: New file.
7344 * features/i386/x32-avx.xml: Likewise.
7345 * features/i386/x32-core.xml: Likewise.
7346 * features/i386/x32-linux.xml: Likewise.
7347 * features/i386/x32.xml: Likewise.
7348
7349 * features/i386/x32-avx-linux.c: New. Generated.
7350 * features/i386/x32-avx.c: Likewise.
7351 * features/i386/x32-linux.c: Likewise.
7352 * features/i386/x32.c: Likewise.
7353 * regformats/i386/x32-avx-linux.dat: Likewise.
7354 * regformats/i386/x32-avx.dat: Likewise.
7355 * regformats/i386/x32-linux.dat: Likewise.
7356 * regformats/i386/x32.dat: Likewise.
7357
ee41036f
TG
73582012-04-10 Tristan Gingold <gingold@adacore.com>
7359
7360 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7361 code to kill the inferior.
7362
a7aa5b8a
MK
73632012-04-09 Mark Kettenis <kettenis@gnu.org>
7364
7365 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7366 defines.
7367 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7368 defines.
a09130f9 7369 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7370 (yyvsp): New defines.
7371 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7372 defines.
7373 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7374 defines.
7375 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7376 defines.
7377 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7378 defines.
7379 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7380 defines.
7381
fb57d452
MK
73822012-04-09 Mark Kettenis <kettenis@gnu.org>
7383
a09130f9 7384 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7385 (sparc64_store_arguments): Fix coding style.
7386
cdc7b32f
MK
73872012-04-07 Mark Kettenis <kettenis@gnu.org>
7388
7389 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7390 complex floats, adjust some related comments and tighten a related
7391 assertion.
7392 (sparc64_extract_return_value): Handle complex floats.
7393
7adf1e79
DE
73942012-04-07 Doug Evans <dje@google.com>
7395
7396 * dwarf2read.c (load_partial_dies): Change condition to assert.
7397
50f1ae7b
DE
73982012-04-06 Doug Evans <dje@google.com>
7399
7400 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7401 "mov %rsp,%rbp".
7402
55fa75c3
KB
74032012-04-05 Kevin Buettner <kevinb@redhat.com>
7404
7405 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7406 fencepost error.
7407 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7408 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7409 architecture.
7410
40e084e1
KS
74112012-04-05 Keith Seitz <keiths@redhat.com>
7412
7413 * linespec.c (decode_compound): Remove.
7414 (enum offset_relative_sign): New enum.
7415 (struct line_offset): New struct.
7416 (struct linespec): New struct.
7417 (struct linespec_state): Move file_symtabs,
7418 user_filename, and user_function into struct linespec.
7419 Make result an anonymous struct holding vectors of
7420 symbolp and minsym_and_objfile_d.
7421 Add language member.
7422 (enum ls_token_type): New enum.
7423 (linespec_keywords): New array.
7424 (struct ls_token): New struct.
7425 (struct ls_parser): New struct.
7426 (linespec_lexer_lex_number): New function.
7427 (linespec_lexer_lex_keyword): New function.
7428 (is_ada_operator): New function.
7429 (skip_quote_char): New function.
7430 (copy_token_string): New function.
7431 (is_closing_quote_enclosed): New function.
7432 (find_parameter_list_end): New function.
7433 (linespec_lexer_lex_string): New function.
7434 (linespec_lexer_lex_one): New function.
7435 (linespec_lexer_consume_token): New function.
7436 (linespec_lexer_peek_token): New function.
7437 (cplusplus_error): Remove unused function.
7438 (find_methods): Update comment.
7439 (find_toplevel_char): Return const.
7440 (is_objc_method_format): Remove unused function.
7441 (find_toplevel_string): New function.
7442 (is_linespec_boundary): Remove.
7443 (symbol_not_found_error): New function.
7444 (find_method_overload_end): Remove function.
7445 (unexpected_linespec_error): New function.
7446 (keep_name_info): Remove.
7447 (linespec_parse_line_offset): New function.
7448 (linespec_parse_basic): New function.
7449 (canonicalize_linespec): New function.
7450 (decode_line_internal): Remove.
7451 (create_sals_line_offset): New function adapted from
7452 decode_all_digits.
7453 (convert_linespec_to_sals): New function.
7454 (parse_linespec): New function.
7455 (linespec_parser_new): New function.
7456 (linespec_state_destructor): Change parameter type to
7457 struct linespec_state *.
7458 Add language parameter.
7459 Remove freeing of moved members.
7460 (linespec_parser_delete): New function.
7461 (decode_line_full): Use parse_linespec and linespec_parser_new.
7462 (decode_line_1): Likewise.
7463 (decode_indirect): Rename to ...
7464 (linespec_expression_to_pc): ... this and rewrite
7465 to simply find CORE_ADDR, storing this result for later
7466 conversion to SALs.
7467 (locate_first_half): Remove.
7468 (deocde_objc): Add parameter LS.
7469 Initialize new struct collect_info members.
7470 Handle minimal symbols, too.
7471 (decode_compound): Delete.
7472 (lookup_prefix_sym): Rewrite.
7473 (compare_msymbols): New function.
7474 (find_method): Rewrite.
7475 Do not call cplusplus_error.
7476 (symtabs_from_filename): Rewrite.
7477 (collect_function_symbols): Delete.
7478 (find_function_symbols): Rewrite without ARGPTR-style
7479 processing.
7480 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7481 (decode_dollar): Adapted and renamed to ...
7482 (linespec_parse_variable): ... this.
7483 (find_linespec_symbols): New function.
7484 (decode_label): Adapted and renamed to ...
7485 (find_label_symbols): ... this.
7486 (decode_digits_list_mode): Add and use LS argument.
7487 (decode_digits_ordinary): Likewise.
7488 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7489 If in list mode, allow any symbol class. Otherwise, only
7490 permit LOC_BLOCK symbols.
7491 (minsym_found): Update comments.
7492 (search_minsyms_for_name): Do not convert the matching symbol
7493 into a SAL. Simply push the symbol and objfile into the
7494 result vector.
7495 (decode_variable): Delete. Contents adapted into
7496 find_linespec_symbols.
7497
7498 * cp-support.c (SKIP_SPACE): Remove.
7499 (operator_tokens): Remove unused global.
7500 (cp_validate_operator): Remove.
7501 * cp-support.h (cp_validate_operator): Remove declaration.
7502
a72c8f6a
JK
75032012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7504
7505 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7506 for TYPE_VPTR_FIELDNO.
7507 * valprint.c (valprint_check_validity): Make it global, move the
7508 function comment ...
7509 * value.h (valprint_check_validity): ... to this new declaration.
7510
cf9bb588
TG
75112012-04-02 Tristan Gingold <gingold@adacore.com>
7512
7513 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7514 the STATE32 api for i386 state.
7515 (i386_darwin_store_inferior_registers): Likewise.
7516
17092398
TG
75172012-04-02 Tristan Gingold <gingold@adacore.com>
7518
7519 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7520 SS offset.
7521 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7522 format_string.
7523
ece0061f
TG
75242012-04-02 Tristan Gingold <gingold@adacore.com>
7525
7526 PR gdb/13901
d987a266 7527 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7528
cf65ecd3
JK
75292012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7530
7531 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7532
9bc3523d
TT
75332012-03-30 Tom Tromey <tromey@redhat.com>
7534
7535 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7536 of TRY_CATCH. Fix error handling.
7537 * python/py-value.c (convert_value_from_python): Move 'old'
7538 declaration to innermost scope.
7539
b1ed564a
JB
75402012-03-29 Joel Brobecker <brobecker@adacore.com>
7541 Andrey Smirnov <andrew.smirnov@gmail.com>
7542
7543 -Wshadow warning fix.
7544 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7545 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7546 Adjust code accordingly.
7547
cb8e9b97
JB
75482012-03-29 Joel Brobecker <brobecker@adacore.com>
7549
7550 * ada-lang.c (symbol_completion_add): Rename parameter
7551 "encoded" into "encoded_p". Ajust code and documentation
7552 accordingly.
7553
c0af1706
JB
75542012-03-29 Joel Brobecker <brobecker@adacore.com>
7555 Andrey Smirnov <andrew.smirnov@gmail.com>
7556
7557 -Wshadow warning fix.
7558 * ada-lang.c (symbol_completion_add): Rename parameter
7559 "wild_match" into wild_match_p. Update code and documentation
7560 accordingly.
7561
6ea35997
JB
75622012-03-29 Joel Brobecker <brobecker@adacore.com>
7563
7564 * ada-lang.c (symbol_completion_match): Rename parameter
7565 "encoded" into "encoded_p". Ajust code and documentation
7566 accordingly.
7567
e701b3c0
JB
75682012-03-29 Joel Brobecker <brobecker@adacore.com>
7569 Andrey Smirnov <andrew.smirnov@gmail.com>
7570
7571 -Wshadow warning fix.
7572 * ada-lang.c (symbol_completion_match): Rename parameter
7573 "wild_match" into "wild_match_p". Adjust code and function
7574 documentation accordingly.
7575
5e2336be
JB
75762012-03-29 Joel Brobecker <brobecker@adacore.com>
7577 Andrey Smirnov <andrew.smirnov@gmail.com>
7578
7579 -Wshadow warning fix.
7580 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7581 "symbol_info" into "info". Adjust code accordingly.
7582 (ada_lookup_symbol): Likewise.
7583
9f88c959
JB
75842012-03-29 Joel Brobecker <brobecker@adacore.com>
7585
7586 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7587 of this function's documentation.
7588
82ccd55e
JB
75892012-03-29 Joel Brobecker <brobecker@adacore.com>
7590 Andrey Smirnov <andrew.smirnov@gmail.com>
7591
7592 -Wshadow warning fix.
7593 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7594 variable into "wild_match_p". Adjust code accordingly.
7595
d0a8ab18
JB
75962012-03-29 Joel Brobecker <brobecker@adacore.com>
7597 Andrey Smirnov <andrew.smirnov@gmail.com>
7598
7599 -Wshadow warning fix.
7600 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7601 parameter into "wild_match_p". Adjust code accordingly.
7602 Document this parameter in the function description.
7603
48b78332
JB
76042012-03-29 Joel Brobecker <brobecker@adacore.com>
7605 Andrey Smirnov <andrew.smirnov@gmail.com>
7606
7607 -Wshadow warning fix.
7608 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7609 "wild_match" parameter to "wild_match_p" (-Wshadow).
7610
2e6e0353
JB
76112012-03-29 Joel Brobecker <brobecker@adacore.com>
7612
7613 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7614 in function documentation.
7615
dc4024cd
JB
76162012-03-29 Joel Brobecker <brobecker@adacore.com>
7617 Andrey Smirnov <andrew.smirnov@gmail.com>
7618
7619 -Wshadow warning fix.
7620 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7621 variable into wild_match_p. Adjust code accordingly.
7622
6c88661c
JB
76232012-03-29 Joel Brobecker <brobecker@adacore.com>
7624 Andrey Smirnov <andrew.smirnov@gmail.com>
7625
7626 * ada-valprint.c (ada_val_print_1): Move the code handling
7627 TYPE_CODE_ENUM inside its own lexical block. Declare
7628 variables len and val there, instead of in the function's
7629 top level block. Avoid declaring deref_val again in a way
7630 that shadows another variable of the same name declared
7631 in one of the up-level blocks. Just re-use the up-level
7632 variable instead.
7633
4e5c77fe
JB
76342012-03-29 Joel Brobecker <brobecker@adacore.com>
7635
7636 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7637 Replace block_found argument by symbol_info. Adjust
7638 implementation accordingly. Add function documentation.
7639 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7640 Fix documentation.
7641 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7642 * ada-exp.y (write_object_renaming): Adjust to new
7643 ada_lookup_encoded_symbol API.
7644
1c0ac8c7
JB
76452012-03-29 Joel Brobecker <brobecker@adacore.com>
7646
7647 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7648 documentation.
7649
2aaed979
KB
76502012-03-28 Rathish C <rathish.c@kpitcummins.com>
7651
7652 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7653 (v850_register_name): Add the mpu and fpu register names.
7654 (v850e_register_name): Add the mpu and fpu register names.
7655 (v850e2_register_name): New function.
a09130f9 7656 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7657 bfd_mach_v850e2v3.
7658
927fbba6
JB
76592012-03-28 Joel Brobecker <brobecker@adacore.com>
7660
7661 * NEWS: Add entry for Ada varobj support.
7662
d32cafc7
JB
76632012-03-28 Joel Brobecker <brobecker@adacore.com>
7664
7665 * varobj.c (default_value_is_changeable_p): New function,
7666 extracted from varobj_value_is_changeable_p. Add declaration.
7667 (ada_value_is_changeable_p): New function, extracted from
7668 varobj_value_is_changeable_p. Add declaration.
7669 (struct language_specific): New field "value_is_changeable_p".
7670 (languages): Add entries for new field.
7671 (varobj_create): Set language before calling install_new_value.
7672 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7673 "value_is_changeable_p" language callback.
7674
181875a4
JB
76752012-03-28 Joel Brobecker <brobecker@adacore.com>
7676
7677 * ada-varobj.h, ada-varobj.c: New files.
7678 * Makefile.in (SFILES): Add ada-varobj.c.
7679 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7680 (COMMON_OBS): Add ada-varobj.o.
7681
7a290c40
JB
76822012-03-28 Joel Brobecker <brobecker@adacore.com>
7683
7684 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7685 (struct language_specific): New field "value_has_mutated".
7686 (languages): Set field "value_has_mutated" in each entry of array.
7687 (varobj_value_has_mutated): New function.
7688 (varobj_udpdate): Add handling of type mutation.
7689 (value_of_root): Add handling of type mutation.
7690 (ada_value_has_mutated): New function.
7691
ca9b8b9c
PA
76922012-03-28 Pedro Alves <palves@redhat.com>
7693
7694 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7695 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7696
cc0265cd
TT
76972012-03-28 Tom Tromey <tromey@redhat.com>
7698
7699 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7700 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7701 before returning.
7702
3ad2ec6f
TT
77032012-03-28 Tom Tromey <tromey@redhat.com>
7704
7705 * .dir-locals.el: New file.
7706
4a6510ba
PA
77072012-03-28 Pedro Alves <palves@redhat.com>
7708
7709 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7710
5a75128f
JB
77112012-03-28 Joel Brobecker <brobecker@adacore.com>
7712
7713 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7714 handling for r0.
7715
f99d8bf4
PA
77162012-03-27 Pedro Alves <palves@redhat.com>
7717
7718 Eliminate struct ui_stream.
7719
7720 * ui-out.h (struct ui_stream): Delete.
7721 (ui_out_field_stream): Adjust prototype.
7722 (ui_out_stream_new, ui_out_stream_delete)
7723 (make_cleanup_ui_out_stream_delete): Delete declarations.
7724 * ui-out.c (ui_out_field_stream): Change prototype to take a
7725 ui_file instead of a ui_stream. Adjust.
7726 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7727 (make_cleanup_ui_out_stream_delete): Delete.
7728 * breakpoint.c (print_breakpoint_location)
7729 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7730 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7731 * disasm.c (dump_insns): Ditto.
7732 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7733 prototype.
7734 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7735 ui_stream/ui_out_stream_new.
7736 * infcmd.c (print_return_value): Ditto.
7737 * osdata.c (info_osdata_command): Don't allocate a local
7738 ui_stream.
7739 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7740 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7741 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7742 allocate a local ui_stream.
7743 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7744 instead of ui_stream/ui_out_stream_new.
7745 (list_args_or_locals): Don't allocate a local ui_stream.
7746 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7747 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7748 ui_stream/ui_out_stream_new.
7749 * cli/cli-setshow.c (do_setshow_command): Ditto.
7750
6350a066 77512012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7752
6350a066
PA
7753 * arm-linux-tdep.c (arm_linux_init_abi): Call
7754 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7755 * arm-tdep.c (arm_process_record): New function.
7756 (deallocate_reg_mem): New function.
7757 (decode_insn): New function.
7758 (thumb_record_branch): New function.
7759 (thumb_record_ldm_stm_swi(): New function.
7760 (thumb_record_misc): New function.
7761 (thumb_record_ld_st_stack): New function.
7762 (thumb_record_ld_st_imm_offset): New function.
7763 (thumb_record_ld_st_reg_offset(): New function.
7764 (thumb_record_add_sub_cmp_mov): New function.
7765 (thumb_record_shift_add_sub): New function.
7766 (arm_record_coproc_data_proc): New function.
7767 (arm_record_coproc): New function.
7768 (arm_record_b_bl): New function.
7769 (arm_record_ld_st_multiple): New function.
7770 (arm_record_ld_st_reg_offset): New function.
7771 (arm_record_ld_st_imm_offset): New function.
7772 (arm_record_data_proc_imm): New function.
7773 (arm_record_data_proc_misc_ld_str): New function.
7774 (arm_record_extension_space): New function.
7775 (arm_record_strx): New function.
7776 (sbo_sbz): New function.
7777 (struct insn_decode_record): New structure for arm insn record.
7778 (REG_ALLOC): New macro for reg allocations.
7779 (MEM_ALLOC): New macro for memory allocations.
7780 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7781
89e028e2
AS
77822012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7783
7784 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7785 (store_register): Likewise.
7786
6350a066 77872012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7788
6350a066 7789 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7790
5b43fab2
JK
77912012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7792
7793 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7794 Describe also the option "auto".
7795
b5453b95
RH
77962012-03-22 Richard Henderson <rth@redhat.com>
7797
7798 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7799 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7800
227ee7fc
RH
78012012-03-22 Richard Henderson <rth@redhat.com>
7802
7803 * jit.c (jit_read_code_entry): Compute alignment and offset of
7804 int64_t member before computing entry_size.
7805
7b282c5a
SCR
78062012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7807
7808 Python scripting: Add new method Value.referenced_value to
7809 gdb.Value which can dereference pointer as well as reference
7810 values.
7811 * NEWS: Add entry under 'Python scripting' about the new method
7812 Value.referenced_value on gdb.Value objects.
7813 * python/py-value.c (valpy_referenced_value): New function
7814 defining a new method on gdb.Value objects which can dereference
7815 pointer and reference values.
7816
0c83539f
SCR
78172012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7818
7819 * MAINTAINERS (Write After Approval): Add myself to the list.
7820
7ccffd7c
KB
78212012-03-21 Kevin Buettner <kevinb@redhat.com>
7822
7823 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7824 in addition to "main".
7825
bd0b9f9e
JB
78262012-03-21 Joel Brobecker <brobecker@adacore.com>
7827
7828 * expression.h (op_name): Add declaration.
7829 * expprint.c (op_name): Remove declaration. Make non-static.
7830 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7831
a5362b9a
TS
78322012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7833
7834 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7835 of struct siginfo.
7836 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7837 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7838 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7839 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7840 (linux_nat_get_siginfo): Likewise.
7841 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7842 (linux_nat_get_siginfo): Likewise.
7843 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7844 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7845 * procfs.c (gdb_siginfo_t): Likewise.
7846
adcadaab
MF
78472012-03-21 Mike Frysinger <vapier@gentoo.org>
7848
7849 * .gitignore: Ignore more files.
7850
e278ad5b
PA
78512012-03-20 Pedro Alves <palves@redhat.com>
7852
7853 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7854 returns.
7855
741e63d7
YQ
78562012-03-20 Yao Qi <yao@codesourcery.com>
7857
7858 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7859 comment.
7860
b64f50a1
JK
78612012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7862
7863 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7864 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7865 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7866 sect_offset.
7867 * dwarf2expr.h (cu_offset, sect_offset): New types.
7868 (struct dwarf_expr_context_funcs) <dwarf_call>
7869 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7870 sect_offset.
7871 (struct dwarf_expr_context) <len>: Improve the comment.
7872 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7873 cu_offset and sect_offset.
7874 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7875 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7876 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7877 * dwarf2loc.h: Include dwarf2expr.h.
7878 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7879 and sect_offset.
7880 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7881 Improve the comment.
7882 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7883 (struct signatured_type, struct line_header, struct partial_die_info)
7884 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7885 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7886 (get_die_type_at_offset, create_cus_from_index)
7887 (create_signatured_type_table_from_index, dw2_get_file_names)
7888 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7889 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7890 (create_debug_types_hash_table, process_psymtab_comp_unit)
7891 (load_partial_comp_unit, create_all_comp_units)
7892 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7893 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7894 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7895 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7896 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7897 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7898 (find_partial_die, read_attribute_value, lookup_die_type)
7899 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7900 (is_ref_attr): New function comment.
7901 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7902 Use cu_offset and sect_offset.
7903 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7904 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7905 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7906 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7907 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7908 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7909 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7910 sect_offset.
7911
e97a38f7
JK
79122012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7913
7914 Code cleanup.
7915 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7916 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7917 with xfree.
7918 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7919
8320cc4f
JK
79202012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7921
7922 * NEWS: Describe new options --init-command=FILE, -ix and
7923 --init-eval-command=COMMAND, -iex.
7924 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7925 CMDARG_INIT_COMMAND.
7926 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7927 "init-command", "init-eval-command", "ix" and "iex" to the variable
7928 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7929 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7930 (print_gdb_help): Describe --init-command=FILE, -ix and
7931 --init-eval-command=COMMAND, -iex.
7932
26743505
JK
79332012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7934
7935 Code cleanup.
7936 * main.c (struct cmdarg): Move it here from main. Add more comments.
7937 (cmdarg_s, VEC (cmdarg_s)): New.
7938 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7939 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7940 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7941 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7942 of CMDARG.
7943
5ff5c7b4
TT
79442012-03-19 Tom Tromey <tromey@redhat.com>
7945
7946 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7947
ab260dad
JK
79482012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7949
7950 PR symtab/13777
7951 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7952 GCC >=4.5.
7953
c366c1f0
TT
79542012-03-16 Chris January <chris.january@allinea.com>
7955
7956 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7957 of clear.
7958
e16edb45
TT
79592012-03-16 Chris January <chris.january@allinea.com>
7960
7961 * source.c (add_path): Use memmove instead of strcpy because the
7962 strings overlap.
7963
53ba8333
JB
79642012-03-16 Joel Brobecker <brobecker@adacore.com>
7965
7966 * value.h (set_value_parent): Add declaration.
7967 * value.c (set_value_parent): New function.
7968 (value_address): If VALUE->PARENT is not NULL, then use it as
7969 the base address instead of VALUE->LOCATION.address.
7970 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7971 the same as OBJ's address. Adjust V's offset accordingly.
7972 Set V's parent.
7973
481860b3
GB
79742012-03-16 Gary Benson <gbenson@redhat.com>
7975
7976 PR breakpoints/10738
7977 * dwarf2read.c (use_deprecated_index_sections): New global.
7978 (struct partial_die_info): New member may_be_inlined.
7979 (read_partial_die): Set may_be_inlined where appropriate.
7980 (add_partial_subprogram): Add partial symbols for partial
7981 DIEs that may be inlined.
7982 (new_symbol_full): Add inlined subroutines to the current
7983 scope.
7984 (write_psymtabs_to_index): Bump version number.
7985 (dwarf2_read_index): Read only version 6 indices unless
7986 use_deprecated_index_sections is set.
7987 * linespec.c (symbol_and_data_callback): New structure.
7988 (iterate_inline_only): New function.
7989 (iterate_over_all_matching_symtabs): New argument
7990 "include_inline". If nonzero, also call the callback for
7991 symbols representing inlined subroutines.
7992 (lookup_prefix_sym): Pass extra argument to the above.
7993 (find_function_symbols): Likewise.
7994 (add_matching_symbols_to_info): Likewise.
7995 * NEWS: Mention that GDB can now set breakpoints on inlined
7996 functions.
7997
d0e7e15a
PM
79982012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7999
8000 * p-typeprint.c (pascal_type_print_method_args):
8001 Fix display of parameter of methods.
8002
3d354654
PM
80032012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8004
8005 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8006 Add missing prototype.
8007
cafe75b0
JK
80082012-03-16 Yao Qi <yao@codesourcery.com>
8009 Jan Kratochvil <jan.kratochvil@redhat.com>
8010
8011 Fix false compilation warning.
8012 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8013
25f8c692
JL
80142012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8015 Pedro Alves <pedro@codesourcery.com>
8016
8017 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8018 (arm_register_g_packet_guesses): New function.
8019 (arm_gdbarch_init): Don't force a target description with
8020 registers when the executable is detected as M-profile. Instead
8021 set gdbarch->tdep->is_m. Register `g' packet guesses.
8022 (_initialize_arm_tdep): Initialize the new target description.
8023 * features/arm-with-m-fpa-layout.xml: New description.
8024 * features/arm-with-m-fpa-layout.c: New, generated.
8025
35c63cd8
JB
80262012-03-15 Joel Brobecker <brobecker@adacore.com>
8027
8028 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8029 Update function description.
8030 (insert_bp_location): Do not wipe bl->target_info out.
8031 * mem-break.c: #include "gdb_string.h".
8032 (default_memory_insert_breakpoint): Do not call target_read_memory
8033 with a pointer to the breakpoint's shadow_contents buffer. Use
8034 a local buffer instead.
8035 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8036
57651221
TT
80372012-03-15 Tom Tromey <tromey@redhat.com>
8038
8039 * NEWS: Mention "info vtbl", not "info vtable".
8040 * cp-support.c (info_vtbl_command): Fix comment.
8041 (_initialize_cp_support): Fix text.
8042
410528f0
TT
80432012-03-15 Tom Tromey <tromey@redhat.com>
8044
8045 * cp-valprint.c (cp_print_value_fields): Use
8046 print_function_pointer_address for vtable slot.
8047
c4aeac85
TT
80482012-03-15 Tom Tromey <tromey@redhat.com>
8049
8050 * gnu-v3-abi.c (struct value_and_voffset): New.
8051 (hash_value_and_voffset, eq_value_and_voffset)
8052 (compare_value_and_voffset, compute_vtable_size)
8053 (print_one_vtable, gnuv3_print_vtable): New functions.
8054 (init_gnuv3_ops): Initialize 'print_vtable' field.
8055 * cp-support.c (info_vtbl_command): New function.
8056 (_initialize_cp_support): Add "info vtbl".
8057 * cp-abi.h (cplus_print_vtable): Declare.
8058 (struct cp_abi_ops) <print_vtable>: New field.
8059 * cp-abi.c (cplus_print_vtable): New function.
8060 * NEWS: Update.
8061
95cbceff
TT
80622012-03-15 Tom Tromey <tromey@redhat.com>
8063
8064 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8065 iterate_over_symbols.
8066
589b4a32
DE
80672012-03-14 Doug Evans <dje@google.com>
8068
8069 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8070 DW_OP_GNU_parameter_ref.
8071
e837f12a
JK
80722012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8073
8074 Fix double prompt of 'interpreter-exec mi'.
8075 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8076 (mi_interpreter_resume): use it.
8077 (mi_execute_command_input_handler): New function.
8078 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8079 mi_execute_command_input_handler.
8080
ff1e4526 80812012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8082
8083 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8084 prototype.
8085 (darwin_debug_port_info): Make static.
8086 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8087 * machoread.c (_initialize_machoread): Add prototype.
8088 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8089 (i386_darwin_set_control, i386_darwin_get_control)
8090 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8091 i386_darwin_get_status, i386_darwin_get_control):
8092 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8093
d8a5d6ee
JB
80942012-03-13 Joel Brobecker <brobecker@adacore.com>
8095
8096 * ax-gdb.c (gen_usual_unary): Remove special handling of
8097 enum and bool types.
8098
af381b8c
JB
80992012-03-13 Joel Brobecker <brobecker@adacore.com>
8100
8101 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8102
786c562f
JB
81032012-03-13 Joel Brobecker <brobecker@adacore.com>
8104
8105 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8106
e3ebf1bb
JB
81072012-03-13 Chris January <chris.january@allinea.com>
8108
8109 * aix-thread.c (fill_sprs): Store the floating point registers
8110 at the correct offsets into vals.
8111
c5b7e1cb
DE
81122012-03-13 Doug Evans <dje@google.com>
8113
16899756
DE
8114 * NEWS: Mention symbol-reloading has been deleted.
8115 * symfile.c (symbol_reloading): Delete.
8116 (show_symbol_reloading): Delete.
8117 (_initialize_symfile): Delete set/show symbol-reloading.
8118
c5b7e1cb
DE
8119 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8120 read_in_chain until we have successfully read it in.
8121 (load_full_comp_unit): Ditto.
8122 (read_signatured_type): Add comment.
8123
46cb6474
JB
81242012-03-13 Chris January <chris.january@allinea.com>
8125
8126 * stabsread.c (fix_common_block): Change type of valu argument
8127 to CORE_ADDR.
8128
76219d77
JB
81292012-03-13 Chris January <chris.january@allinea.com>
8130
8131 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8132 instruction.
8133
87b0bb13
JK
81342012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8135
8136 * common/linux-procfs.c (linux_proc_get_int): New, from
8137 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8138 field.
8139 (linux_proc_get_tgid): Only call linux_proc_get_int.
8140 (linux_proc_get_tracerpid): New.
8141 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8142 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8143 linux_proc_pid_has_state.
8144 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8145 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8146 (linux_ptrace_attach_warnings): New.
8147 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8148 New declaration.
8149 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8150 (linux_nat_attach): New variables ex, buffer, message and message_s.
8151 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8152
5f572dec
JK
81532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8154
8155 * Makefile.in (linux-ptrace.o): New.
8156 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8157 from linux-nat.c.
8158 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8159 * common/linux-ptrace.c: New file.
8160 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8161 * config/arm/linux.mh: Likewise.
8162 * config/i386/linux.mh: Likewise.
8163 * config/i386/linux64.mh: Likewise.
8164 * config/ia64/linux.mh: Likewise.
8165 * config/m32r/linux.mh: Likewise.
8166 * config/m68k/linux.mh: Likewise.
8167 * config/mips/linux.mh: Likewise.
8168 * config/pa/linux.mh: Likewise.
8169 * config/powerpc/linux.mh: Likewise.
8170 * config/powerpc/ppc64-linux.mh: Likewise.
8171 * config/powerpc/spu-linux.mh: Likewise.
8172 * config/s390/s390.mh: Likewise.
8173 * config/sparc/linux.mh: Likewise.
8174 * config/sparc/linux64.mh: Likewise.
8175 * config/xtensa/linux.mh: Likewise.
8176 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8177 common/linux-procfs.c.
8178 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8179
44f238bb
PA
81802012-03-13 Hui Zhu <teawater@gmail.com>
8181 Pedro Alves <palves@redhat.com>
8182
8183 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8184 CREATE_BREAKPOINT_FLAGS_INSERTED.
8185 (create_breakpoint_sal, create_breakpoints_sal)
8186 (base_breakpoint_create_breakpoints_sal)
8187 (tracepoint_create_breakpoints_sal)
8188 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8189 down.
8190 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8191 (ftrace_command, strace_command): Adjust.
8192 (create_tracepoint_from_upload): Pass
8193 CREATE_BREAKPOINT_FLAGS_INSERTED.
8194 * breakpoint.h (enum breakpoint_create_flags): New.
8195 (create_breakpoint): New flags parameter.
8196 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8197 * python/py-breakpoint.c (bppy_init): Adjust.
8198 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8199 * spu-tdep.c (spu_catch_start): Adjust.
8200
1e51243a
PA
82012012-03-13 Pedro Alves <palves@redhat.com>
8202 Hui Zhu <teawater@gmail.com>
8203 Yao Qi <yao@codesourcery.com>
8204
8205 * remote.c (struct remote_state): New field `starting_up'.
8206 (remote_start_remote): Set and clear it.
8207 (remote_can_download_tracepoint): If starting up, return false.
8208
fa3064dd
YQ
82092012-03-13 Yao Qi <yao@codesourcery.com>
8210
8211 * inferior.h (struct inferior): Remove fields any_syscall_count,
8212 syscalls_counts and total_syscalls_count. Move them to new
8213 struct catch_syscall_inferior_data in breakpoint.c.
8214 * breakpoint.c: Call DEF_VEC_I(int).
8215 (struct catch_syscall_inferior_data): New.
8216 (get_catch_syscall_inferior_data): New.
8217 (catch_syscall_inferior_data_cleanup): New.
8218 (insert_catch_syscall): Update to access data in
8219 struct catch_syscall_inferior_data.
8220 (insert_catch_syscall): Likewise.
8221 (remove_catch_syscall): Likewise.
8222 (remove_catch_syscall): Likewise.
8223 (is_syscall_catchpoint_enabled): Likewise.
8224 (add_catch_command): Likewise.
8225 (_initialize_breakpoint): Register cleanup.
8226 * breakpoint.h: Removed DEF_VEC_I(int).
8227 * dwarf2loc.c: Call DEF_VEC_I(int).
8228 * mi/mi-main.c: Likewise.
8229
460fac3c
MK
82302012-03-12 Mark Kettenis <kettenis@gnu.org>
8231
8232 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8233
e1aca11e
JB
82342012-03-12 Chris January <chris.january@allinea.com>
8235
8236 * aix-thread.c (_initialize_aix_thread): Add prototype.
8237 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8238 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8239
649c7061
JB
82402012-03-12 Joel Brobecker <brobecker@adacore.com>
8241
8242 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8243 include of "amd64-nat.h".
8244
0b49e518
TT
82452012-03-12 Tom Tromey <tromey@redhat.com>
8246
8247 * buildsym.c (record_pending_block): Now static.
8248 * buildsym.h: (record_pending_block): Remove.
8249
fd24fa94
AT
82502012-03-12 Andreas Tobler <andreast@fgznet.ch>
8251
8252 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8253
ba919b58
TT
82542012-03-09 Tom Tromey <tromey@redhat.com>
8255
8256 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8257 producer_is_gxx_lt_4_6>: New fields.
8258 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8259
a48e046c
TT
82602012-03-09 Tom Tromey <tromey@redhat.com>
8261
8262 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8263
6f5e9362
JB
82642012-03-08 Joel Brobecker <brobecker@adacore.com>
8265
8266 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8267 prototype.
8268
8d037db9
JB
82692012-03-08 Joel Brobecker <brobecker@adacore.com>
8270
8271 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8272
4e841acf
JK
82732012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8274
8275 Fix -Wmissing-prototypes build.
8276 * arm-linux-nat.c (get_thread_id): Make it static.
8277 * xtensa-linux-nat.c (get_thread_id): Likewise.
8278
c6030312
JB
82792012-03-08 Joel Brobecker <brobecker@adacore.com>
8280
8281 * server.c (process_point_options): If a conditional expression
8282 is found, only print a message if remote_debug is nonzero.
8283
52323be9
LM
82842012-03-08 Luis Machado <lgustavo@codesourcery.com>
8285
8286 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8287 of internal error for unknown/unsupported types.
8288
7fe25d9b
JK
82892012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8290
8291 Fix CU relative vs. absolute DIE offsets.
8292 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8293 offset to offset_in_cu.
8294 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8295 TYPE_OFFSET.
8296 (dwarf2_fetch_die_location_block): Rename parameter offset to
8297 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8298
05e7c244
JK
82992012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8300
8301 * libunwind-frame.c: Rename to ...
8302 * ia64-libunwind-tdep.c: ... here.
8303 * libunwind-frame.h: Rename to ...
8304 * ia64-libunwind-tdep.h: ... here.
8305 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8306 ia64-libunwind-tdep.h.
8307 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8308 * README (--with-libunwind): Rename to ...
8309 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8310 * config.in: Regenerate.
8311 * configure: Regenerate.
8312 * configure.ac: New option --with-libunwind-ia64, make the
8313 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8314 Remove AC_DEFINE for HAVE_LIBUNWIND.
8315 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8316 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8317 Rename libunwind-frame in the general comment.
8318 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8319 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8320 Move forward declarations inside #ifndef. Rename libunwind-frame in
8321 the general comment.
8322 * ia64-tdep.c: Rename libunwind-frame.h #include to
8323 ia64-libunwind-tdep.h.
8324 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8325 (ia64_libunwind_descr): Rename libunwind-frame to
8326 ia64-libunwind-tdep in these function comments.
8327 * ia64-tdep.h: Rename libunwind-frame.h #include to
8328 ia64-libunwind-tdep.h.
8329 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8330 ia64-libunwind-tdep in that data comment.
8331
3755cbfd
JK
83322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8333
8334 * libunwind-frame.h (struct frame_unwind): New declaration.
8335
d1cda5d9
JB
83362012-03-08 Joel Brobecker <brobecker@adacore.com>
8337
8338 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8339 "set breakpoint condition-evaluation" command.
8340
a0ba0aa2
TG
83412012-03-08 Tristan Gingold <gingold@adacore.com>
8342
8343 * sparc-stub.c: Move to stubs/
8344 * sh-stub.c: Likewise.
8345 * m68k-stub.c: Likewise.
8346 * m32r-stub.c: Likewise.
8347 * i386-stub.c: Likewise.
8348
7b8b6d6d
AS
83492012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8350
007cafee
AS
8351 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8352 linux_get_siginfo_type.
8353
7b8b6d6d
AS
8354 * m68klinux-nat.c: Include "gdb_proc_service.h".
8355 (PTRACE_GET_THREAD_AREA): Define.
8356 (ps_get_thread_area): New function.
8357
bba74b36
YQ
83582012-03-08 Yao Qi <yao@codesourcery.com>
8359
8360 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8361 `xsnprintf'.
8362 (remote_query_attached): Likewise.
8363 (remote_static_tracepoint_marker_at): Likewise.
8364 (remote_set_permissions): Likewise.
8365 (remote_detach_1, extended_remote_attach_1): Likewise.
8366 (send_g_packet, remote_vkill): Likewise.
8367 (extended_remote_disable_randomization): Likewise.
8368 (remote_add_target_side_condition): Likewise.
8369 (remote_insert_breakpoint): Likewise.
8370 (remote_remove_breakpoint): Likewise.
8371 (remote_insert_watchpoint): Likewise.
8372 (remote_remove_watchpoint): Likewise.
8373 (remote_insert_hw_breakpoint): Likewise.
8374 (remote_insert_hw_breakpoint): Likewise.
8375 (remote_remove_hw_breakpoint): Likewise.
8376 (remote_download_command_source): Likewise.
8377 (remote_download_tracepoint): Likewise.
8378 (remote_download_trace_state_variable): Likewise.
8379 (remote_disable_tracepoint): Likewise.
8380 (remote_trace_set_readonly_regions): Likewise.
8381 (remote_get_tracepoint_status): Likewise.
8382 (remote_trace_find): Likewise.
8383 (remote_get_trace_state_variable_value): Likewise.
8384 (remote_set_disconnected_tracing): Likewise.
8385 (remote_set_circular_trace_buffer): Likewise.
8386 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8387 (remote_use_agent): Likewise.
8388 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8389 Update callers.
8390
9b224c5e
PA
83912012-03-07 Pedro Alves <palves@redhat.com>
8392
8393 * NEWS: Mention QProgramSignals.
8394 * inferior.h (update_signals_program_target): Declare.
8395 * infrun.c: (update_signals_program_target): New.
8396 (handle_command): Update the target of the new program signals
8397 array changes.
8398 * remote.c (PACKET_QProgramSignals): New enum.
8399 (last_program_signals_packet): New global.
8400 (remote_program_signals): New.
8401 (remote_start_remote): Update the target with the program signals
8402 list.
8403 (remote_protocol_features): Add entry for QPassSignals.
8404 (remote_open_1): Free anc clear last_program_signals_packet.
8405 (init_remote_ops): Install remote_program_signals.
8406 * target.c (update_current_target): Adjust.
8407 (target_program_signals): New.
8408 * target.h (struct target_ops) <to_program_signals>: New field.
8409 (target_program_signals): Declare.
8410
74c48cbb
PA
84112012-03-07 Pedro Alves <palves@redhat.com>
8412
8413 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8414 extensions.
8415
0c13fc49
AS
84162012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8417
8418 * m68klinux-nat.c (getregs_supplies): Make static.
8419 (getfpregs_supplies): Likewise.
8420 (have_ptrace_getregs): Likewise.
8421
1281d2a3
JB
84222012-03-06 Joel Brobecker <brobecker@adacore.com>
8423
8424 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8425 in call to get_die_type_at_offset.
8426
2b03b41d
SS
84272012-03-06 Stan Shebs <stan@codesourcery.com>
8428
8429 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8430 * mi/mi-cmd-disas.c: Ditto.
8431 * mi/mi-cmd-env.c: Ditto.
8432 * mi/mi-cmd-file.c: Ditto.
8433 * mi/mi-cmd-stack.c: Ditto.
8434 * mi/mi-cmd-target.c: Ditto.
8435 * mi/mi-cmd-var.c: Ditto.
8436 * mi/mi-cmds.c: Ditto.
8437 * mi/mi-cmds.h: Ditto.
8438 * mi/mi-console.c: Ditto.
8439 * mi/mi-getopt.c: Ditto.
8440 * mi/mi-getopt.h: Ditto.
8441 * mi/mi-interp.c: Ditto.
8442 * mi/mi-main.c: Ditto.
8443 * mi/mi-out.c: Ditto.
8444 * mi/mi-parse.c: Ditto.
8445 * mi/mi-parse.h: Ditto.
8446 * mi/mi-symbol-cmds.c: Ditto.
8447
8448 * mi/mi-getopt.h: Move mi_opt struct up.
8449 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8450 return.
8451 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8452
c988ad87
TT
84532012-03-06 Tom Tromey <tromey@redhat.com>
8454
8455 * proc-service.c (ps_pglobal_lookup): Set the current program
8456 space.
8457
1b7c1b10
PA
84582012-03-06 Pedro Alves <palves@redhat.com>
8459
8460 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8461
3c182069
JB
84622012-03-05 Joel Brobecker <brobecker@adacore.com>
8463
8464 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8465
2e794194
JK
84662012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8467
8468 Code cleanup.
8469 * common/linux-osdata.c (linux_common_core_of_thread): New function
8470 comment.
8471 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8472 call by linux_common_core_of_thread.
8473 (linux_nat_core_of_thread_1): Remove.
8474 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8475 * linux-thread-db.c: Include linux-osdata.h.
8476 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8477 linux_common_core_of_thread.
8478
9f9f1f31
TT
84792012-03-05 Tom Tromey <tromey@redhat.com>
8480
8481 * value.c (value_primitive_field): Don't fetch contents for
8482 non-virtual bases.
8483
b7b189f3
TT
84842012-03-05 Tom Tromey <tromey@redhat.com>
8485
8486 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8487
05b8a789 84882012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8489
5538f557
JB
8490 * s390-nat.c: Include "gregset.h".
8491
75528772
JK
84922012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8493
8494 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8495 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8496 (libunwind_load): New variable so_error, use it for dlerror. Try to
8497 load also LIBUNWIND_SO_7.
8498
275418ae
PA
84992012-03-05 Pedro Alves <palves@redhat.com>
8500
8501 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8502 is not NULL, and remove resulting dead code.
8503
5cbb9812
TS
85042012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8505
8506 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8507 prologue to sh_analyze_prologue.
8508 (sh_analyze_prologue): Make better use of such an upper limit, and
8509 generally be more cautious about accessing memory.
8510
541515ad
TT
85112012-03-05 Tom Tromey <tromey@redhat.com>
8512
8513 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8514 _initialize_ia64_hpux_tdep.
8515
b4d36fb8
PA
85162012-03-05 Pedro Alves <palves@redhat.com>
8517
24490249
PA
8518 PR gdb/13766
8519
b4d36fb8
PA
8520 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8521 the register state is clear, supply explicit zero, instead of
8522 marking the register unavailable.
8523
60c9a3c0
TG
85242012-03-05 Tristan Gingold <gingold@adacore.com>
8525
8526 * NEWS: Mention OpenVMS ia64 new target.
8527
696759ad
TG
85282012-03-05 Tristan Gingold <gingold@adacore.com>
8529
8530 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8531 (ia64_unw_accessors, ia64_unw_rse_accessors)
8532 (ia64_libunwind_descr): Declare.
8533 * ia64-vms-tdep.c: New file.
8534 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8535 (ia64_libunwind_descr): Make them public.
8536 * configure.tgt: Add ia64-*-*vms*.
8537 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8538 (ALLDEPFILES): Add ia64-vms-tdep.c
8539
34864976
TG
85402012-03-05 Tristan Gingold <gingold@adacore.com>
8541
169081d0
TG
8542 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8543 * remote.c (PACKET_qXfer_uib): New enum value.
8544 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8545 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8546 (_initialize_remote): Call add_packet_config_cmd for
8547 xfer:uib packet.
8548
85492012-03-05 Tristan Gingold <gingold@adacore.com>
8550
8551 * osabi.c (gdb_osabi_names): Add OpenVMS.
8552 (generic_elf_osabi_sniffer): Likewise.
8553 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8554
6597b100
JK
85552012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8556
8557 Removed unused code.
8558 * libunwind-frame.c (libunwind_frame_unwind)
8559 (libunwind_frame_base_address): Remove.
8560 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8561
87399aa1
YQ
85622012-03-04 Yao Qi <yao@codesourcery.com>
8563
8564 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8565 remove trailing new line.
8566 (agent_run_command, agent_run_command): Add _ markup.
8567 (agent_capability_check): Likewise.
8568
abf1152a
JK
85692012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8570
8571 * breakpoint.c (set_condition_evaluation_mode): Set
8572 CONDITION_EVALUATION_MODE unconditionally.
8573
5808517f
YQ
85742012-03-03 Yao Qi <yao@codesourcery.com>
8575
8576 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8577 * common/agent.h: Update declaration.
8578 * inf-child.c (inf_child_use_agent): New.
8579 (inf_child_can_use_agent): New.
8580 (inf_child_target): Initialize fields `to_use_agent'
8581 and `to_can_use_agent'.
8582 * agent.c (agent_new_objfile): New.
89b7509a 8583 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8584 observer.
8585
8586 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8587 New.
89b7509a 8588 (linux_target_install_ops): Initialize field
5808517f
YQ
8589 `to_static_tracepoint_markers_by_strid'.
8590 * remote.c (free_current_marker): Move it to ...
8591 * tracepoint.c (free_current_marker): ... here. New.
8592 (cleanup_target_stop): New.
8593 * tracepoint.h: Declare free_current_marker.
8594 * NEWS: Add one entry about `info static-tracepoint-marker'.
8595
58b4daa5
YQ
85962012-03-03 Yao Qi <yao@codesourcery.com>
8597
8598 * common/agent.c (agent_loaded_p): New.
89b7509a 8599 (agent_look_up_symbols): New global.
58b4daa5
YQ
8600 * common/agent.h: Declare agent_loaded_p.
8601
8ffcbaaf
YQ
86022012-03-03 Yao Qi <yao@codesourcery.com>
8603
8604 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8605 (agent_capability_check, agent_capability_invalidate): New.
8606 (symbol_list): New array element.
8607 * common/agent.h (enum agent_capa): New.
8608 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8609
d1feda86
YQ
86102012-03-03 Yao Qi <yao@codesourcery.com>
8611
8612 * target.h (struct target_ops) <to_use_agent>: New field.
8613 (struct target_ops) <to_can_use_agent>: New field.
8614 (target_use_agent, target_can_use_agent): New macro.
8615 * target.c (update_current_target): Update.
8616 * remote.c: New enum `PACKET_QAgent'.
8617 (remote_protocol_features): Add a new element.
8618 (remote_use_agent, remote_can_use_agent): New.
8619 (init_remote_ops): Initialize field `can_use_agent' with
8620 remote_can_use_agent. Intiailize field `use_agent' with
8621 remote_use_agent.
8622 * common/agent.c (use_agent): New global.
8623 * common/agent.h: Declare it.
8624 * tracepoint.c (info_static_tracepoint_markers_command): Add
8625 comment.
8626 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8627 (COMMON_OBS): Add common/agent.o and agent.o
8628 (common-agent.o): New rule.
8629 * agent.c: New.
8630
2fa291ac
YQ
86312012-03-03 Yao Qi <yao@codesourcery.com>
8632
8633 * common/agent.c: New.
8634 * common/agent.h: New.
8635 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8636 AC_CHECK_HEADERS.
8637 * configure, configh.in: Regenerated.
8638
9fc05685
KB
86392012-03-02 Kevin Buettner <kevinb@redhat.com>
8640
8641 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8642 unless it exists for this architecture.
8643
a5ee536b
JB
86442012-03-02 Joel Brobecker <brobecker@adacore.com>
8645
8646 * language.h (struct language_defn): New "method" la_read_var_value.
8647 * findvar.c: #include "language.h".
8648 (default_read_var_value): Renames read_var_value. Rewrite
8649 function description.
8650 (read_var_value): New function.
8651 * value.h (default_read_var_value): Add prototype.
8652 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8653 New functions.
8654 (ada_language_defn): Add entry for la_read_var_value.
8655 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8656 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8657 language_defn structures to add entry for new la_read_var_value
8658 field.
8659
f59f708a
PA
86602012-03-02 Tom Tromey <tromey@redhat.com>
8661 Pedro Alves <palves@redhat.com>
8662
8663 PR breakpoints/13776:
8664 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8665 breakpoints.
8666 (delete_longjmp_breakpoint_at_next_stop): New.
8667 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8668 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8669 before deleting the inferior. Add comments.
8670 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8671 breakpoints immediately, but only on next stop. Move that code
8672 next to where we mark other breakpoints for deletion.
8673
44099a67
JB
86742012-03-02 Joel Brobecker <brobecker@adacore.com>
8675
8676 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8677 marker.
8678 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8679 violation.
8680
2a2ef594
PA
86812012-03-02 Pedro Alves <palves@redhat.com>
8682
8683 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8684
b261e0c5
UW
86852012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8686
8687 Fix -Wmissing-prototypes build.
8688 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8689 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8690 (gdbsim_has_memory): Likewise.
8691
a95babbf
YQ
86922012-03-02 Yao Qi <yao@codesourcery.com>
8693
8694 Fix -Wmissing-prototypes build.
8695 * charset.c (phony_iconv_open): Make static.
8696 (phony_iconv_close, phony_iconv): Likewise.
8697 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8698 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8699 prototype.
8700 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8701 * ser-mingw.c (create_select_thread): Make static.
8702 * windows-termcap.c (tgetent): New prototype.
8703 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8704
d603d4b3
JK
87052012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8706
8707 Fix -Wmissing-prototypes build.
8708 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8709 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8710 (_initialize_loadable): New prototypes.
8711
7fb3ad1f
DE
87122012-03-02 Doug Evans <dje@google.com>
8713
8714 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8715 abbrev table, read_comp_unit will do it.
8716
693be288
JK
87172012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 Fix -Wmissing-prototypes build.
8720 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8721 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8722 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8723 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8724 (_initialize_arm_symbian_tdep): New prototype.
8725 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8726 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8727 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8728 static.
8729 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8730 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8731 prototype.
8732 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8733 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8734 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8735 static.
8736 * moxie-tdep.c (moxie_process_record): Likewise.
8737 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8738 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8739 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8740 (_initialize_rl78_tdep): New prototype.
8741 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8742 (_initialize_rx_tdep): New prototype.
8743 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8744 (_initialize_darwin_solib): New prototype.
8745 * solib-spu.c: Include solib-spu.h.
8746 (_initialize_spu_solib): New prototype.
8747 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8748 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8749 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8750 (tic6x_software_single_step): Make it static.
8751 (_initialize_tic6x_tdep): New prototype.
8752
638234e5
JK
87532012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8754
8755 Fix -Wmissing-prototypes build.
8756 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8757 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8758
f4a6f16d
JK
87592012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 Fix -Wmissing-prototypes build.
8762 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8763 (frv_have_stopped_data_address): Remove.
8764
04dcf5fa
JK
87652012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8766
8767 Fix -Wmissing-prototypes build.
8768 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8769 * sh-tdep.c: Include sh64-tdep.h.
8770 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8771 * sh64-tdep.c: Include sh64-tdep.h.
8772 * sh64-tdep.h: New file.
8773
19080931
MR
87742012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8775
8776 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8777
9aac7884
MR
87782012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8779
8780 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8781 sp_regnum once the gdbarch_init_osabi hook has been called.
8782
a385295e
MR
87832012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8784
8785 * mips-tdep.c (mips32_bc1_pc): New function.
8786 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8787 BPOSGE32 and BPOSGE64 instructions.
8788 (deal_with_atomic_sequence): Likewise.
8789 (mips32_instruction_has_delay_slot): Likewise.
8790
1faeff08 87912012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8792 Chris Dearman <chris@mips.com>
8793 Maciej W. Rozycki <macro@codesourcery.com>
8794 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8795
8796 * features/mips-dsp.xml: New file.
8797 * features/mips64-dsp.xml: New file.
8798 * features/mips-dsp-linux.xml: New file.
8799 * features/mips64-dsp-linux.xml: New file.
8800 * features/Makefile (WHICH): Add mips-dsp-linux and
8801 mips64-dsp-linux.
8802 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8803 * features/mips-dsp-linux.c: New file.
8804 * features/mips64-dsp-linux.c: New file.
8805 * regformats/mips-dsp-linux.dat: New file.
8806 * regformats/mips64-dsp-linux.dat: New file.
8807 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8808 registers.
8809 (mips64_linux_register_addr): Likewise.
8810 (mips64_linux_regsets_fetch_registers): Likewise.
8811 (mips64_linux_regsets_store_registers): Likewise.
8812 (mips64_linux_fetch_registers): Update call to
8813 mips64_linux_regsets_fetch_registers.
8814 (mips64_linux_store_registers): Update call to
8815 mips64_linux_regsets_store_registers.
8816 (mips_linux_read_description): Probe for DSP registers.
8817 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8818 and initialize_tdesc_mips64_dsp_linux.
8819 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8820 Remove padding of no longer used embedded register slots.
8821 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8822 (MIPS_RESTART_REGNUM): Redefine enum value.
8823 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8824 strings.
8825 (mips_tx39_reg_names): Likewise.
8826 (mips_linux_reg_names): New array of register names for Linux
8827 targets.
8828 (mips_register_name): Check for a null pointer in
8829 mips_processor_reg_names and return an empty string.
8830 (mips_register_type): Exclude embedded registers for the IRIX
8831 and Linux ABIs.
8832 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8833 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8834 DSP registers.
8835 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8836 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8837 (mips_gdbarch_init): Likewise. Initialize internal register
8838 indices for the Linux ABI. Use dynamic numbers to refer to
8839 registers, as applicable, while parsing the target description.
8840 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8841
263689d8
JB
88422012-03-01 Joel Brobecker <brobecker@adacore.com>
8843
8844 * frame.h (read_frame_register_unsigned): Fix typo in function
8845 description.
8846
f3b4f45c
PA
88472012-03-01 Pedro Alves <palves@redhat.com>
8848
8849 * jit-reader.in [!__cplusplus]
8850 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8851
b03a2011
PA
88522012-03-01 Pedro Alves <palves@redhat.com>
8853
8854 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8855 * configure: Regenerate.
8856
70221824
PA
88572012-03-01 Pedro Alves <palves@redhat.com>
8858
8859 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8860 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8861 (ftrace_command, strace_command): Make static.
8862 * d-lang.c (_initialize_d_language): Declare.
8863 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8864 * dwarf2loc.c (_initialize_dwarf2loc):
8865 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8866 * exec.c (exec_get_section_table): Make static.
8867 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8868 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8869 * inferior.c (remove_inferior_command, add_inferior_command)
8870 (clone_inferior_command): Make static.
8871 * linux-nat.c (linux_nat_thread_address_space)
8872 (linux_nat_core_of_thread): Make static.
8873 * linux-tdep.c (_initialize_linux_tdep): Declare.
8874 * objc-lang.c (_initialize_objc_lang): Declare.
8875 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8876 Make static.
8877 (_initialize_opencl_language): Declare.
8878 * record.c (_initialize_record): Declare.
8879 * remote.c (demand_private_info, remote_get_tib_address)
8880 (remote_supports_cond_tracepoints)
8881 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8882 Make static.
8883 * skip.c (_initialize_step_skip): Declare.
8884 * symtab.c (skip_prologue_using_lineinfo): Make static.
8885 * tracepoint.c (delete_trace_state_variable)
8886 (trace_variable_command, delete_trace_variable_command)
8887 (get_uploaded_tsv, find_matching_tracepoint_location)
8888 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8889 Make static.
8890 * value.c (pack_unsigned_long): Make static.
8891 * varobj.c (varobj_ensure_python_env): Make static.
8892 * windows-tdep.c (_initialize_windows_tdep): Declare.
8893 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8894
33fbcbee
PA
88952012-03-01 Pedro Alves <palves@redhat.com>
8896
8897 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8898 gdbarch parameter.
8899 (linux_init_abi): Install it as has_shared_address_space gdbarch
8900 callback.
8901
44d0cd3b
PA
89022012-03-01 Pedro Alves <palves@redhat.com>
8903
8904 * observer.c (observer_test_first_notification_function)
8905 (observer_test_second_notification_function)
8906 (observer_test_third_notification_function): Add declarations.
8907
ed01b82c
PA
89082012-03-01 Pedro Alves <palves@redhat.com>
8909
8910 * common/signals.c (default_target_signal_to_host)
8911 (default_target_signal_from_host): Move ...
8912 * arch-utils.c: ... here.
8913 * arch-utils.h (default_target_signal_to_host)
8914 (default_target_signal_from_host): Declare.
8915
8916 * common/signals.c (target_signal_from_command): Move ...
8917 * infrun.c: ... here.
8918 * inferior.h (target_signal_from_command): Declare.
8919 * target.h (target_signal_from_command)
8920 (default_target_signal_from_host, default_target_signal_to_host):
8921 Delete declarations.
8922
8923 * common/signals.c (_initialize_signals): Delete.
8924
c9b87335
PA
89252012-03-01 Pedro Alves <palves@redhat.com>
8926
8927 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8928 both __cplusplus and !__cplusplus.
8929
9340a6c0
PA
89302012-03-01 Pedro Alves <palves@redhat.com>
8931
8932 * psymtab.c (find_and_open_source): Delete declaration.
8933 * source.c (find_and_open_source): Move comment ...
8934 * source.h (find_and_open_source): ... to this new declaration.
8935
e451c4a1
PA
89362012-03-01 Pedro Alves <palves@redhat.com>
8937
8938 * inline-frame.c: Include inline-frame.h.
8939
983fb104
PA
89402012-03-01 Pedro Alves <palves@redhat.com>
8941
8942 * tui/tui-data.c (set_gen_win_origin): Delete.
8943 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8944 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8945
5fbce5df
PA
89462012-03-01 Pedro Alves <palves@redhat.com>
8947
8948 * remote.c (encode_actions): Delete declaration.
8949 * tracepoint.c (encode_actions): Make extern.
8950 * tracepoint.h (encode_actions): Declare.
8951
49a8461d
PA
89522012-03-01 Pedro Alves <palves@redhat.com>
8953
8954 * python/py-breakpoint.c: Include python.h.
8955 * python/py-continueevent.c (create_continue_event_object): Make
8956 static.
8957 * python/py-lazy-string.c (stpy_get_type): Make static.
8958 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8959 Make static.
8960 * python/py-utils.c (unicode_to_target_python_string): Make
8961 static.
8962 * python/py-value.c: Include python.h.
8963
9079102f
PA
89642012-03-01 Pedro Alves <palves@redhat.com>
8965
8966 * inferior.c (delete_threads_of_inferior): Delete.
8967
a298c5e8
PA
89682012-03-01 Pedro Alves <palves@redhat.com>
8969
8970 Import fallback definitions from glibc.
8971
8972 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8973 ps_prochandle): Forward declare.
8974 (ps_err_e): Use glibc's comments.
8975 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8976 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8977 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8978 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8979 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8980 (struct ps_prochandle): Adjust comment.
8981
e3084549
PA
89822012-03-01 Pedro Alves <palves@redhat.com>
8983
8984 * ada-lang.c (ada_modulus_from_name): Delete.
8985 * ada-lex.l (lexer_init): Make static.
8986
ad5f7d6e
PA
89872012-03-01 Pedro Alves <palves@redhat.com>
8988
8989 PR gdb/13767
8990
8991 * frame.c (read_frame_register_unsigned): New.
8992 * frame.h (read_frame_register_unsigned): Declare.
8993 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8994 Handle it.
8995 (print_i387_control_word): New parameter `control_p'. Handle it.
8996 (i387_print_float_info): Handle unavailable float registers.
8997
e0a4d108
KS
89982012-03-01 Keith Seitz <keiths@redhat.com>
8999
9000 * linespec.c (decode_line_2): Sort the list of methods
9001 alphabetically before presenting the user with a selection
9002 menu.
9003
122d1940
DE
90042012-03-01 Doug Evans <dje@google.com>
9005
9006 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9007 has_namespace_info.
9008 (dwarf2_read_abbrevs): Remove corresponding initialization.
9009
7d74f244
DE
90102012-03-01 Scott J. Goldman <scottjg@vmware.com>
9011
9012 * NEWS: Mention new python command class gdb.COMMAND_USER.
9013 * cli/cli-cmds.c (show_user): Print error when used on a python
9014 command.
9015 (init_cli_cmds): Update documentation strings for "show user" and
9016 "set/show max-user-call-depth" to clarify that it does not apply to
9017 python commands.
9018 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9019 error check.
9020 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9021 gdb python api.
9022 * top.c (execute_command): Only execute a user-defined command as a
9023 legacy macro if c->user_commands is set.
9024
e88acd96
TT
90252012-03-01 Tom Tromey <tromey@redhat.com>
9026
9027 * valprint.h (struct generic_val_print_decorations): New.
9028 (generic_val_print): Declare.
9029 * valprint.c (generic_val_print): New function.
9030 * p-valprint.c (p_decorations): New global.
9031 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9032 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9033 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9034 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9035 * m2-valprint.c (m2_decorations): New global.
9036 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9037 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9038 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9039 TYPE_CODE_ERROR>: Call generic_val_print.
9040 * f-valprint.c (f_decorations): New global.
9041 (f_val_print): Use print_function_pointer_address.
9042 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9043 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9044 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9045 generic_val_print.
9046 * c-valprint.c (c_decorations): New global.
9047 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9048 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9049 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9050 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9051 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9052 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9053 case.
9054
d3eab38a
TT
90552012-03-01 Tom Tromey <tromey@redhat.com>
9056
9057 * valprint.c (val_print): Update.
9058 * p-valprint (pascal_val_print): Return void.
9059 * p-lang.h (pascal_val_print): Return void.
9060 * m2-valprint.c (m2_val_print): Return void.
9061 * m2-lang.h (m2_val_print): Return void.
9062 * language.h (struct language_defn) <la_val_print>: Return void.
9063 * language.c (unk_lang_val_print): Return void.
9064 * jv-valprint.c (java_val_print): Return void.
9065 * jv-lang.h (java_val_print): Return void.
9066 * f-valprint.c (f_val_print): Return void.
9067 * f-lang.h (f_val_print): Return void.
9068 * d-valprint.c (d_val_print): Return void.
9069 (dynamic_array_type): Update.
9070 * d-lang.h (d_val_print): Return void.
9071 * c-valprint.c (c_val_print): Return void.
9072 * c-lang.h (c_val_print): Return void.
9073 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9074 void.
9075 * ada-lang.h (ada_val_print): Return void.
9076
35c0084b
TT
90772012-03-01 Tom Tromey <tromey@redhat.com>
9078
9079 * value.h (val_print): Return void.
9080 * valprint.c (val_print): Return void.
9081
a1f5dd1b
TT
90822012-03-01 Tom Tromey <tromey@redhat.com>
9083
9084 * value.h (common_val_print): Return void.
9085 * valprint.c (common_val_print): Return void.
9086
8e069a98
TT
90872012-03-01 Tom Tromey <tromey@redhat.com>
9088
9089 * value.h (value_print): Return void.
9090 * valprint.c (value_print): Return void.
9091 * p-valprint.c (pascal_value_print): Return void.
9092 * p-lang.h (pascal_value_print): Return void.
9093 * language.h (struct language_defn) <la_value_print>: Return
9094 void.
9095 * language.c (unk_lang_value_print): Return void.
9096 * jv-valprint.c (java_value_print): Return void.
9097 * jv-lang.h (java_value_print): Return void.
9098 * f-valprint.c (c_value_print): Don't declare.
9099 Include c-lang.h.
9100 * c-valprint.c (c_value_print): Return void.
9101 * c-lang.h (c_value_print): Return void.
9102 * ada-valprint.c (ada_value_print): Return void.
9103 * ada-lang.h (ada_value_print): Return void.
9104
be335936
TT
91052012-03-01 Tom Tromey <tromey@redhat.com>
9106
9107 * value.c (value_primitive_field): Handle virtual base classes.
9108
b0db66a7
TT
91092012-03-01 Tom Tromey <tromey@redhat.com>
9110
9111 * gdbtypes.h (struct vbase): Remove.
9112
132c57b4
TT
91132012-03-01 Tom Tromey <tromey@redhat.com>
9114
9115 * c-valprint.c (print_function_pointer_address): Move...
9116 * valprint.c: ... here. Make non-static.
9117 * m2-valprint.c (print_function_pointer_address): Remove.
9118 * valprint.h (print_function_pointer_address): Declare.
9119
e41eec66
JB
91202012-03-01 Joel Brobecker <brobecker@adacore.com>
9121
9122 * NEWS: Document the fact that one can provide a condition when
9123 creating an Ada exception catchpoint.
9124
19c37f24
TT
91252012-03-01 Tom Tromey <tromey@redhat.com>
9126
9127 * valprint.c (val_print_type_code_flags): Fix placement of
9128 trailing brace.
9129
f0fed3a3
JB
91302012-03-01 Joel Brobecker <brobecker@adacore.com>
9131
9132 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9133 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9134 environment variable before calling update-copyright.
9135
8ba85d85
JB
91362012-03-01 Joel Brobecker <brobecker@adacore.com>
9137
9138 * gnulib/extra/update-copyright: Update to the latest from
9139 gnulib's git repository.
9140 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9141 variable to 2 instead of 1.
9142
8219b1e8
JB
91432012-02-29 Joel Brobecker <brobecker@adacore.com>
9144
9145 * varobj.c (c_value_of_variable): Remove dead code.
9146
718cb7da
JB
91472012-02-29 Joel Brobecker <brobecker@adacore.com>
9148
9149 * ada-lex.p (processId): Do not modify already encoded IDs.
9150 Update function documentation.
9151
739593e0
JB
91522012-02-29 Joel Brobecker <brobecker@adacore.com>
9153
9154 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9155 "name" with "struct symbol *name_sym".
9156 * ada-exp.y (write_var_or_type): Update call to
9157 ada_find_renaming_symbol.
9158 "name" with "struct symbol *name_sym". Adjust Implementation
9159 accordingly. Adjust the function documentation.
9160
852dff6c
JB
91612012-02-29 Joel Brobecker <brobecker@adacore.com>
9162
9163 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9164 * ada-lang.c (ada_find_any_type): Add advance declaration.
9165 Make static. Replace ada_find_any_symbol by
9166 ada_find_any_type_symbol.
9167 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9168 Improve function description. Make static.
9169 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9170 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9171
1b611343
JB
91722012-02-29 Joel Brobecker <brobecker@adacore.com>
9173
9174 * ada-lang.c (struct tag_args): Delete.
9175 (ada_get_tsd_type): Function body moved up in source file.
9176 (ada_tag_name_1, ada_tag_name_2): Delete.
9177 (ada_get_tsd_from_tag): New function.
9178 (ada_tag_name_from_tsd): New function.
9179 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9180 to determine the tag name.
9181
41246937
JB
91822012-02-29 Joel Brobecker <brobecker@adacore.com>
9183
9184 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9185 declaration.
9186 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9187 function.
9188
ffde82bf
JB
91892012-02-29 Joel Brobecker <brobecker@adacore.com>
9190
9191 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9192
2ad01556
JB
91932012-02-29 Joel Brobecker <brobecker@adacore.com>
9194
9195 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9196 full searches.
9197
99b1c762
JB
91982012-02-29 Joel Brobecker <brobecker@adacore.com>
9199
9200 * ada-lang.c (constrained_packed_array_type): If there is a
9201 parallel XA type, use it to determine the array index type.
9202
2d4a02ee
JB
92032012-02-29 Joel Brobecker <brobecker@adacore.com>
9204
9205 * ada-valprint.c (ada_val_print_1): If our value is a reference
9206 to an array descriptor, dereference it before converting it
9207 to a simple array.
9208
c48db5ca
JB
92092012-02-29 Joel Brobecker <brobecker@adacore.com>
9210
9211 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9212 creating fixed value.
9213 (ada_value_ind, ada_coerce_ref, assign_component)
9214 (ada_evaluate_subexp): Remove call to unwrap_value before
9215 call to ada_to_fixed_value.
9216
2e6fda7d
JB
92172012-02-29 Joel Brobecker <brobecker@adacore.com>
9218
9219 * ada-lang.c (to_fixed_array_type): Set result's type name.
9220
5845583d
JB
92212012-02-29 Joel Brobecker <brobecker@adacore.com>
9222
9223 * ada-lang.c (catch_ada_exception_command_split): Add new
9224 argument cond_string. Add support for condition at end of
9225 "catch exception" commands.
9226 (ada_decode_exception_location): Add new argument cond_string.
9227 Update call to catch_ada_exception_command_split.
9228 (create_ada_exception_catchpoint): Add new argument cond_string.
9229 Set the breakpoint condition if needed.
9230 (catch_ada_exception_command): Update call to
9231 ada_decode_exception_location.
9232 (ada_decode_assert_location): Add function documentation.
9233 Add support for condition at end of "catch assert" command.
9234 (catch_assert_command): Update calls to ada_decode_assert_location
9235 and create_ada_exception_catchpoint.
9236
9a7f938f
JK
92372012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 Fix disp-step-syscall.exp: fork: single step over fork.
9240 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9241 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9242 comment, change parameters gdbarch and ptid to regcache. Remove
9243 parameter regcache, initialize gdbarch from regcache here.
9244 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9245 New functions.
9246 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9247 instead.
9248 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9249 'syscall'. Make the 'int' check more strict.
9250
ffdf6de5
JK
92512012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9252
9253 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9254 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9255 (i386_linux_intx80_sysenter_syscall_record): ... here.
9256 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9257 Use the renamed function name.
9258
c70a6932
JK
92592012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9262 * breakpoint.c (until_break_command): Likewise.
9263 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9264 * infcall.c (call_function_by_hand): Likewise.
9265 * infcmd.c (finish_forward): Likewise.
9266 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9267
05b8a789 92682012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9269
d4cd3da9
JB
9270 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9271 avoid variable assignments inside condition.
9272
6425366c
JK
92732012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9274
9275 Fix static analysis issue found by cppcheck.
9276 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9277 uninitialized BUF for size 2.
9278
c8cef75f 92792012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9280 Nathan Froyd <froydnj@codesourcery.com>
9281 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9282
9283 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9284 (mips16_instruction_has_delay_slot): Likewise.
9285 (mips_segment_boundary): Likewise.
9286 (mips_adjust_breakpoint_address): Likewise.
9287 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9288
473347ad 92892012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9290 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9291
9292 * infrun.c (handle_inferior_event): Don't proceed through
9293 shared library trampolines if stepping at the machine
9294 instruction level.
9295
cf233303
MR
92962012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9297
9298 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9299 too.
9300
cb2cf4ce
TS
93012012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9302
9303 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9304 (sh_stub_unwind_sniffer): New functions.
9305 (sh_stub_unwind): New variable.
9306 (sh_gdbarch_init): Wire everything.
9307
644cebc9
PA
93082012-02-27 Pedro Alves <palves@redhat.com>
9309
9310 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9311 (linux_nat_post_attach_wait): Adjust to use
9312 linux_proc_pid_is_stopped.
9313 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9314 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9315 based on pid_is_stopped from both linux-nat.c and
9316 gdbserver/linux-low.c, and renamed.
9317
283002cf
MR
93182012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9319
9320 * remote.c (remote_watchpoint_addr_within_range): New function.
9321 (init_remote_ops): Use it.
9322
9b3e86b1
MR
93232012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9324
9325 * target.h (target_watchpoint_addr_within_range): Document macro.
9326
e36930bb
PA
93272012-02-24 Pedro Alves <palves@redhat.com>
9328
9329 * stack.c (set_last_displayed_sal): Issue internal_error instead
9330 of warning, and issue it after clearing the last displayed sal.
9331
883bc8d1
PA
93322012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9333 Pedro Alves <palves@redhat.com>
9334
9335 * breakpoint.c (until_break_command): Install breakpoints after
9336 all frame manipulations.
9337
b775012e
LM
93382012-02-24 Luis Machado <lgustavo@codesourcery.com>
9339
9340 * remote.c (remote_supports_cond_breakpoints): New forward
9341 declaration.
9342 (remote_add_target_side_condition): New function.
9343 (remote_insert_breakpoint): Add target-side breakpoint
9344 conditional if supported.
9345 (remote_insert_hw_breakpoint): Likewise.
9346 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9347 hook.
9348
9349 * target.c (update_current_target): Inherit
9350 to_supports_evaluation_of_breakpoint_conditions.
9351 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9352
9353 * target.h (struct target_ops)
9354 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9355 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9356
9357 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9358 (condition_evaluation_both, condition_evaluation_auto,
9359 condition_evaluation_host, condition_evaluation_target,
9360 condition_evaluation_enums, condition_evaluation_mode_1,
9361 condition_evaluation_mode): New static globals.
9362 (translate_condition_evaluation_mode): New function.
9363 (breakpoint_condition_evaluation_mode): New function.
9364 (gdb_evaluates_breakpoint_condition_p): New function.
9365 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9366 (mark_breakpoint_modified): New function.
9367 (mark_breakpoint_location_modified): New function.
9368 (set_condition_evaluation_mode): New function.
9369 (show_condition_evaluation_mode): New function.
9370 (bp_location_compare_addrs): New function.
9371 (get_first_location_gte_addr): New helper function.
9372 (set_breakpoint_condition): Free condition bytecode if locations
9373 has become unconditional. Call mark_breakpoint_modified (...).
9374 (condition_command): Call update_global_location_list (1) for
9375 breakpoints.
9376 (breakpoint_xfer_memory): Use is_breakpoint (...).
9377 (is_breakpoint): New function.
9378 (parse_cond_to_aexpr): New function.
9379 (build_target_condition_list): New function.
9380 (insert_bp_location): Handle target-side conditional
9381 breakpoints and call build_target_condition_list (...).
9382 (update_inserted_breakpoint_locations): New function.
9383 (insert_breakpoint_locations): Handle target-side conditional
9384 breakpoints.
9385 (bpstat_check_breakpoint_conditions): Add comment.
9386 (bp_condition_evaluator): New function.
9387 (bp_location_condition_evaluator): New function.
9388 (print_breakpoint_location): Print information on where the condition
9389 will be evaluated.
9390 (print_one_breakpoint_location): Likewise.
9391 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9392 breakpoint location.
9393 (force_breakpoint_reinsertion): New functions.
9394 (update_global_location_list): Handle target-side breakpoint
9395 conditions.
9396 Reinsert locations that are already inserted if conditions have
9397 changed.
9398 (bp_location_dtor): Free agent expression bytecode.
9399 (disable_breakpoint): Call mark_breakpoint_modified (...).
9400 Call update_global_location_list (...) with parameter 1 for breakpoints.
9401 (disable_command): Call mark_breakpoint_location_modified (...).
9402 Call update_global_location_list (...) with parameter 1 for breakpoints.
9403 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9404 (enable_command): mark_breakpoint_location_modified (...).
9405 (_initialize_breakpoint): Update documentation and add
9406 condition-evaluation breakpoint subcommand.
9407
9408 * breakpoint.h: Include ax.h.
9409 (condition_list): New data structure.
9410 (condition_status): New enum.
9411 (bp_target_info) <cond_list>: New field.
9412 (bp_location) <condition_changed, cond_bytecode>: New fields.
9413 (is_breakpoint): New prototype.
9414
3788aec7
LM
94152012-02-24 Luis Machado <lgustavo@codesourcery.com>
9416
9417 * remote.c (remote_state) <cond_breakpoints>: New field.
9418 (PACKET_ConditionalBreakpoints): New enum.
9419 (remote_cond_breakpoint_feature): New function.
9420 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9421 (remote_supports_cond_breakpoints): New function.
9422 (_initialize_remote): Add new packet configuration for
9423 target-side conditional breakpoints.
9424
72895ff6
LM
94252012-02-24 Luis Machado <lgustavo@codesourcery.com>
9426
9427 * NEWS: Mention target-side conditional breakpoint support,
9428 new condition-evaluation breakpoint subcommand and remote
9429 packet extensions.
9430
dea2aa5f
LM
94312012-02-24 Luis Machado <lgustavo@codesourcery.com>
9432
9433 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9434 number.
9435
8a8bc27f
TS
94362012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9437
9438 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9439 (after_prologue): Remove.
9440
6b446fdf
TT
94412012-02-23 Tom Tromey <tromey@redhat.com>
9442
9443 * jv-valprint.c (java_val_print): Remove dead code.
9444
ef59abfb
TG
94452012-02-23 Tristan Gingold <gingold@adacore.com>
9446
a09130f9
PA
9447 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9448 known_tasks_element and known_tasks_length fields.
9449 (read_known_tasks_array): Change argument type. Use pointer type
9450 and number of elements from DATA. Adjust.
9451 (read_known_tasks_list): Likewise.
9452 (get_known_tasks_addr): Remove.
9453 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9454 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9455 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9456
def166f6
JK
94572012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 PR backtrace/13716
9460 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9461 it after set_momentary_breakpoint.
9462
aeaa2474
SA
94632012-02-22 Sterling Augustine <saugustine@google.com>
9464
9465 PR 13689:
9466 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9467
feea76c2
GB
94682012-02-22 Gary Benson <gbenson@redhat.com>
9469
9470 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9471 (find_slot_in_mapped_hash): Likewise.
9472
f06e05e0
JK
94732012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9474
9475 PR build/13638
9476 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9477 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9478 * configure: Regenerate.
9479
b54a8fd7
PA
94802012-02-21 Tristan Gingold <gingold@adacore.com>
9481 Pedro Alves <palves@redhat.com>
9482
9483 * ia64-tdep.c: Do not include libunwind-ia64.h.
9484 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9485 Include libunwind-ia64.h instead of libunwind.h.
9486 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9487 for libunwind.h existence.
9488 * configure, config.in: Regenerate.
9489
dfcee124
AG
94902012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9491
9492 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9493 instead of value_rtti_target_type.
9494 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9495 instead of value_rtti_target_type.
9496 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9497 value_rtti_target_type.
9498 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9499 (value_rtti_target_type): Rename to ...
9500 (value_rtti_indirect_type): ... here and make it indirect. Update
9501 function comment.
9502 * value.c (readjust_indirect_value_type): New function.
9503 (coerce_ref): Support for enclosing type setting for references
9504 with readjust_indirect_value_type.
9505 * value.h (readjust_value_type): New declaration.
9506 (value_rtti_target_type): Rename to ...
9507 (value_rtti_indirect_type): ... here.
9508
02568277
AG
95092012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9510
9511 * MAINTAINERS (Write After Approval): Add myself to the list.
9512
10c07b7e 95132012-02-20 Doug Evans <dje@google.com>
28ee876a 9514
d82ea6a8
DE
9515 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9516 Rename objfile_p_char parameter to objfilep.
9517 (build_objfile_section_table): Result is now void. All callers
9518 updated.
9519 * objfiles.h (struct objfile): Tweak comments, whitespace.
9520 (build_objfile_section_table): Update.
9521
28ee876a
DE
9522 * elfread.c (elf_symfile_segments): Fix warning text.
9523
24c79950
TT
95242012-02-20 Tom Tromey <tromey@redhat.com>
9525
9526 PR gdb/13498:
9527 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9528 particular set of file names once.
9529 (dw2_map_symbol_filenames): Likewise.
9530
3a9b40b6
JK
95312012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9532
9533 Code cleanup.
9534 * main.c (write_files): Remove the declaration.
9535 (external_editor_command): Move the declaration ...
9536 [GDBTK] (external_editor_command): ... here. Fix the comment.
9537
4d0795ca
TT
95382012-02-20 Tom Tromey <tromey@redhat.com>
9539
9540 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9541 extraneous block.
9542
637fd620
TG
95432012-02-20 Tristan Gingold <gingold@adacore.com>
9544
9545 * darwin-nat.h (enum darwin_msg_state): Add comments.
9546
6f124894
TG
95472012-02-20 Tristan Gingold <gingold@adacore.com>
9548
9549 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9550 value.
9551
2e6e3d9c
JB
95522012-20-18 Joel Brobecker <brobecker@adacore.com>
9553
9554 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9555 between function description and implementation.
9556
2e8265fd
TT
95572012-02-17 Tom Tromey <tromey@redhat.com>
9558
9559 PR python/12070:
9560 * python/py-event.c (event_object_getset): New global.
9561 (event_object_type): Reference it.
9562 * python/py-type.c (field_object_getset): New global.
9563 (field_object_type): Reference it.
9564 * python/python-internal.h (gdb_py_generic_dict): Declare.
9565 * python/py-utils.c (gdb_py_generic_dict): New function.
9566
8544a150 95672012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9568
8544a150 9569 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9570
ca193e27
TS
95712012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9572
9573 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9574 TYPE_CALLING_CONVENTION annotation.
9575
e5586183
KB
95762012-02-16 Kevin Buettner <kevinb@redhat.com>
9577
9578 * MAINTAINERS: Add rx to target ISA section.
9579 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9580 (ALLDEPFILES): Add rx-tdep.c.
9581
7dcd53a0
TT
95822012-02-16 Tom Tromey <tromey@redhat.com>
9583
9584 * symfile.c (symbol_file_add_main_1): Use inferior's
9585 symfile_flags.
9586 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9587 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9588 inferior.
9589 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9590 inferior.
9591 (follow_exec): Use inferior's symfile_flags.
9592 * inferior.h (struct inferior) <symfile_flags>: New field.
9593
ddd60447
MF
95942012-02-16 Mike Frysinger <vapier@gentoo.org>
9595
9596 PR gdb/9734:
9597 * remote-sim.c (gdbsim_create_inferior): Call error() when
9598 sim_create_inferior() fails.
9599
b0d32fb6
TG
96002012-02-16 Josh Matthews <josh@joshmatthews.net>
9601
9602 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9603
9addecb9
TT
96042012-02-16 Tom Tromey <tromey@redhat.com>
9605
9606 PR c++/13653:
9607 * thread.c (struct current_thread_cleanup) <was_removable>: New
9608 field.
9609 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9610 (make_cleanup_restore_current_thread): Initialize new field.
9611
a58b110a
KB
96122012-02-15 Kevin Buettner <kevinb@redhat.com>
9613
9614 * MAINTAINERS: Add rl78 to target ISA section.
9615 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9616 (ALLDEPFILES): Add rl78-tdep.c.
9617 * NEWS: Mention rl78 as a new target.
9618
4cb6da1c
AR
96192012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9620
9621 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9622 data.
9623 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9624
3af2590d
TT
96252012-02-15 Tom Tromey <tromey@redhat.com>
9626
9627 PR gdb/12659:
9628 * infcmd.c (registers_info): Print just the current register's
9629 name.
9630
c6910659
TT
96312012-02-15 Tom Tromey <tromey@redhat.com>
9632
9633 * python/py-symbol.c (sympy_value): Use _().
9634
7cee1e54
PA
96352012-02-15 Pedro Alves <palves@redhat.com>
9636
9637 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9638 output to be like native targets'.
9639 (remote_pid_to_str): Special case the null ptid.
9640
816338b5
SS
96412012-02-14 Stan Shebs <stan@codesourcery.com>
9642
9643 * NEWS: Mention enable count command.
9644 * breakpoint.h (struct breakpoint): New field enable_count.
9645 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9646 (enable_breakpoint): Add arg to call.
9647 (struct disp_data): New struct.
9648 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9649 (do_map_enable_once_breakpoint): Create a struct and pass it.
9650 (do_map_enable_delete_breakpoint): Ditto.
9651 (do_map_enable_count_breakpoint): New function.
9652 (enable_count_command): New function.
9653 (bpstat_stop_status): Decrement enable_count.
9654 (print_one_breakpoint_location): Report enable count.
9655 (_initialize_breakpoint): Add enable count command.
9656
c47a44f4
KB
96572012-02-14 Kevin Buettner <kevinb@redhat.com>
9658
9659 * rl78-tdep.c (reggroups.h): Include.
9660 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9661 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9662 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9663 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9664 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9665 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9666 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9667 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9668 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9669 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9670 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9671 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9672 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9673 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9674 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9675 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9676 beginning of register list.
9677 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9678 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9679 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9680 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9681 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9682 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9683 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9684 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9685 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9686 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9687 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9688 the pseudo registers. Rearrange other pseudo registers too so
9689 that the bank registers appear at the end.
9690 (rl78_register_type): Account for the fact that the byte sized
9691 bank registers are now pseudo-registers.
9692 (rl78_register_name): Rearrange the register name array. Make
9693 initial set of raw banked registers inaccessible.
9694 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9695 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9696 case for copying bytes back and forth between raw and pseudo
9697 versions of the banked registers. Update other cases to reflect
9698 the changed names.
9699 (rl78_return_value): Update to account for changed names of
9700 raw registers.
9701 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9702 rl78_register_sim_regno().
9703
e4569f1e
KB
97042012-02-14 Kevin Buettner <kevinb@redhat.com>
9705
9706 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9707 the name parameter being passed to find_pc_partial_function().
9708
7a05aae7
JK
97092012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9710
9711 * MAINTAINERS: Step down from being ia64 target maintainer.
9712
11fde611
JK
97132012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9716 compilation warning.
9717
57008375
JK
97182012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 Fix crash on loaded shlibs without loaded exec_bfd.
9721 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9722 (set_section_command): Replace exec_bfd by p->bfd.
9723
ff3c9849
TT
97242012-02-10 Tom Tromey <tromey@redhat.com>
9725
9726 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9727 when we have a C++ qualified name.
9728
db2b9fdd
PA
97292012-02-10 Pedro Alves <palves@redhat.com>
9730
9731 * inferior.c (inferior_pid_to_str): New.
9732 (print_inferior, inferior_command): Use it.
9733
12cd34f3
PA
97342012-02-10 Pedro Alves <palves@redhat.com>
9735
9736 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9737 the test CFLAGS.
9738 * configure: Regenerate.
9739
e871429d
JK
97402012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9741
9742 * linespec.c (decode_line_internal): Fix comment correctness.
9743
1916efaf
PA
97442012-02-09 Valery Khromov <valery.khromov@gmail.com>
9745
9746 PR gdb/12953
9747 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9748 * amd64bsd-nat.c: Add support for debug registers (adapted from
9749 i386bsd-nat.c).
9750 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9751 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9752 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9753 (amd64bsd_dr_get_control): New functions.
9754 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9755 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9756 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9757 watchpoints initialization.
9758 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9759
f4859d94
JK
97602012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9761
9762 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9763 flds_bnds.fields.
9764 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9765
c56a97f9
JK
97662012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9767
9768 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9769
1a119f36
JB
97702012-02-08 Joel Brobecker <brobecker@adacore.com>
9771
9772 * language.h (symbol_name_cmp_ftype): Renames
9773 symbol_name_match_p_ftype.
9774 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9775 la_get_symbol_name_match_p.
9776 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9777 ada_get_symbol_name_match_p. Update comment.
9778 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9779 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9780 Renames symbol_name_match_p. Update field type.
9781 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9782 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9783 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9784 "la_get_symbol_name_cmp" in comments.
9785 * language.c: Likewise.
9786
c71bb1cf
RO
97872012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9788
9789 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9790 %eflags offset.
9791 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9792 (amd64_sol2_gregset32_reg_offs): Likewise.
9793
4b2d20a5
TG
97942012-02-08 Joel Brobecker <brobecker@adacore.com>
9795
9796 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9797 of the returned BFD is allocated by GDB.
9798
f0823d2c
TT
97992012-02-07 Tom Tromey <tromey@redhat.com>
9800
9801 PR python/12027:
9802 * python/python-internal.h (frame_object_type): Declare.
9803 * python/py-symbol.c (sympy_needs_frame): New function.
9804 (sympy_value): New function.
9805 (symbol_object_getset): Add "needs_frame".
9806 (symbol_object_methods): Add "value".
9807 * python/py-frame.c (frame_object_type): No longer static.
9808
64e7d9dd
TT
98092012-02-07 Tom Tromey <tromey@redhat.com>
9810
9811 PR python/13599:
9812 * python/py-symbol.c (sympy_line): New function.
9813 (symbol_object_getset): Add "line".
9814
1d6b2d2b
TT
98152012-02-07 Tom Tromey <tromey@redhat.com>
9816
9817 * charset.c (find_charset_names): Check 'in' against NULL.
9818
0d5cff50
DE
98192012-02-06 Doug Evans <dje@google.com>
9820
9821 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9822 and fields.name members from char * to const char *. All uses updated.
9823 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9824 from char * to const char *. All uses updated.
9825 (type_name_no_tag): Update.
9826 (lookup_unsigned_typename, lookup_signed_typename): Update.
9827 * gdbtypes.c (type_name_no_tag): Change result type
9828 from char * to const char *. All callers updated.
9829 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9830 name parameter from char * to const char *.
9831 * symtab.h (struct cplus_specific): Change type of demangled_name
9832 member from char * to const char *. All uses updated.
9833 (struct general_symbol_info): Change type of name and
9834 mangled_lang.demangled_name members from char * to const char *.
9835 All uses updated.
9836 (symbol_get_demangled_name, symbol_natural_name): Update.
9837 (symbol_demangled_name, symbol_search_name): Update.
9838 * symtab.c (symbol_get_demangled_name): Change result type
9839 from char * to const char *. All callers updated.
9840 (symbol_natural_name, symbol_demangled_name): Ditto.
9841 (symbol_search_name): Ditto.
9842 (completion_list_add_name): Change type of symname,sym_text,
9843 text,word parameters from char * to const char *.
9844 (completion_list_objc_symbol): Change type of sym_text,
9845 text,word parameters from char * to const char *.
9846 * ada-lang.c (find_struct_field): Change type of name parameter
9847 from char * to const char *.
9848 (encoded_ordered_before): Similarly for N0,N1 parameters.
9849 (old_renaming_is_invisible): Similarly for function_name parameter.
9850 (ada_type_name): Change result type from char * to const char *.
9851 All callers updated.
9852 * ada-lang.h (ada_type_name): Update.
9853 * buildsym.c (hashname): Change type of name parameter
9854 from char * to const char *.
9855 * buildsym.h (hashname): Update.
9856 * dbxread.c (end_psymtab): Change type of include_list parameter
9857 from char ** to const char **.
9858 * dwarf2read.c (determine_prefix): Change result type
9859 from char * to const char *. All callers updated.
9860 * f-lang.c (find_common_for_function): Change type of name, funcname
9861 parameters from char * to const char *.
9862 * f-lang.c (find_common_for_function): Update.
9863 * f-valprint.c (list_all_visible_commons): Change type of funcname
9864 parameters from char * to const char *.
9865 * gdbarch.sh (static_transform_name): Change type of name parameter
9866 and result from char * to const char *.
9867 * gdbarch.c: Regenerate.
9868 * gdbarch.h: Regenerate.
9869 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9870 of name parameter from char * to const char *.
9871 * jv-lang.c (java_primitive_type_from_name): Ditto.
9872 (java_demangled_signature_length): Similarly for signature parameter.
9873 (java_demangled_signature_copy): Ditto.
9874 (java_demangle_type_signature): Ditto.
9875 * jv-lang.h (java_primitive_type_from_name): Update.
9876 (java_demangle_type_signature): Update.
9877 * objc-lang.c (specialcmp): Change type of a,b parameters
9878 from char * to const char *.
9879 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9880 from char * to const char *. All callers updated.
9881 * p-lang.h (is_pascal_string_type): Update.
9882 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9883 of name parameter from char * to const char *.
9884 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9885 * utils.c (fprintf_symbol_filtered): Ditto.
9886 * defs.h (fprintf_symbol_filtered): Update.
9887 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9888 * stabsread.h (end_psymtab): Update.
9889 * stack.c (find_frame_funname): Change type of funname parameter
9890 from char ** to const char **.
9891 * stack.h (find_frame_funname): Update.
9892 * typeprint.c (type_print): Change type of varstring parameter
9893 from char * to const char *.
9894 * value.h (type_print): Update.
9895 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9896 from char * to const char *. All callers updated.
9897 (xcoff_end_psymtab): Change type of include_list parameter
9898 from char ** to const char **. All callers updated.
9899 (swap_sym): Similarly for name parameter. All callers updated.
9900 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9901 Use xstrdup.
9902 (process_coff_symbol): Use xstrdup.
9903 * stabsread.c (stabs_method_name_from_physname): Renamed from
9904 update_method_name_from_physname. Change result type from void
9905 to char *. All callers updated.
9906 (read_member_functions): In has_destructor case, store name in objfile
9907 obstack instead of malloc space. In !has_stub case, fix mem leak.
9908
5579a92e
TT
99092012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9910
9911 * configure: Rebuild.
9912 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9913 LDFLAGS.
9914
9058f767
KB
99152012-02-03 Kevin Buettner <kevinb@redhat.com>
9916
9917 * configure.tgt (rl78-*-elf): New target.
9918 * rl78-tdep.c: New file.
9919
5b37825d
PW
99202012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9921
9922 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9923 and continue the loop. Add QUIT statement.
9924
e009ee71
TT
99252012-02-03 Tom Tromey <tromey@redhat.com>
9926
9927 PR gdb/13596:
9928 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9929 bfd_lookup_symbol_from_symtab.
9930 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9931 gdb_bfd_lookup_symbol_from_symtab.
9932
f7e44f65
JB
99332012-02-03 Joel Brobecker <brobecker@adacore.com>
9934
9935 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9936 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9937 symbol. Add assertion that sym2 is never NULL.
9938
2c02bd72
DE
99392012-02-02 Doug Evans <dje@google.com>
9940
9941 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9942 "name" parameter to const char ** from char **. All callers updated.
9943 (find_pc_partial_function): Ditto.
9944 (cache_pc_function_name): Change type to const char * from char *.
9945 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9946 (find_pc_partial_function): Update.
9947 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9948 type of "name" parameter to const char * from char *.
9949 All uses updated.
9950 * arch-utils.c (generic_in_solib_return_trampoline): Change
9951 type of "name" parameter to const char * from char *.
9952 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9953 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9954 type of "name" parameter to const char * from char *.
9955 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9956 * gdbarch.c: Regenerate.
9957 * gdbarch.h: Regenerate.
9958 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9959 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9960 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9961 type of "name" parameter to const char * from char *.
9962 * skip.c (skip_function_pc): Ditto.
9963 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9964 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9965 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9966 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9967 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9968 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9969 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9970 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9971 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9972
e886a173
PA
99732012-02-02 Pedro Alves <palves@redhat.com>
9974
9975 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9976 the current inferior has no execution. Make sure the current
9977 remote process matches gdb's current inferior.
9978
c709a7c2
TT
99792012-02-02 Tom Tromey <tromey@redhat.com>
9980
9981 PR gdb/13405:
9982 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9983 read-only memory.
9984
f149aabd
TT
99852012-02-02 Tom Tromey <tromey@redhat.com>
9986
9987 PR gdb/9307:
9988 * symtab.c (lookup_language_this): Set block_found.
9989
03bef283
TT
99902012-02-01 Tom Tromey <tromey@redhat.com>
9991
9992 PR gdb/13431:
9993 * jit.c (struct jit_inferior_data): Rewrite.
9994 (struct jit_objfile_data): New.
9995 (get_jit_objfile_data): New function.
9996 (add_objfile_entry): Update.
9997 (jit_read_descriptor): Return int. Replace descriptor_addr
9998 argument with inf_data. Update. Don't call error.
9999 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10000 descriptor here.
10001 (jit_inferior_init): Don't look up descriptor. Don't call error.
10002 (jit_reset_inferior_data_and_breakpoints)
10003 (jit_inferior_created_observer): Remove.
10004 (jit_inferior_exit_hook): Update.
10005 (jit_executable_changed_observer): Remove.
10006 (jit_event_handler): Update.
10007 (free_objfile_data): Reset inferior data if needed.
10008 (_initialize_jit): Update.
10009
f0bbc364
TT
100102012-02-01 Tom Tromey <tromey@redhat.com>
10011
10012 * jit.c (bfd_open_from_target_memory): Move higher in file.
10013
47c1316c
TG
100142012-02-01 Tristan Gingold <gingold@adacore.com>
10015
10016 * libunwind-frame.c (libunwind_load): Display message if dlopen
10017 failed.
10018
8e704927
GB
100192012-02-01 Gary Benson <gbenson@redhat.com>
10020
09c7a31f 10021 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10022 (iterate_over_symbols): Use the above.
10023 * symtab.c (iterate_over_symbols): Likewise.
10024 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10025 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10026 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10027 (iterate_name_matcher): Document return values.
10028 (collect_one_symbol): Likewise.
10029 (collect_function_symbols): Likewise.
10030 (collect_symbols): Likewise.
10031
d9680e73
TT
100322012-02-01 Tom Tromey <tromey@redhat.com>
10033
10034 * ada-lang.c (resolve_subexp): Update.
10035 (ada_lookup_symbol_list): Add 'full_search' argument.
10036 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10037 ada_lookup_symbol_list.
10038 (ada_lookup_encoded_symbol): Update.
10039 (get_var_value): Update.
10040 * ada-exp.y (block_lookup): Update.
10041 (write_var_or_type): Update.
10042 (write_name_assoc): Update.
10043 * ada-lang.h (ada_lookup_symbol_list): Update.
10044
72e1143f
TT
100452012-01-31 Tom Tromey <tromey@redhat.com>
10046
10047 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10048 comment.
10049
ab2d2ad3
DE
100502012-01-31 Doug Evans <dje@google.com>
10051
10052 * symtab.h: Remove outdated comment.
e9111bf7 10053 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10054
bc884eba
JB
100552012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10056
10057 Fix build error in Darwin port.
10058 * i386-darwin-nat.c: Include i386-nat.h.
10059
8fc3fc34
TT
100602012-01-30 Tom Tromey <tromey@redhat.com>
10061
10062 PR breakpoints/13568:
10063 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10064 argument. Check for recursive includes.
10065 (dwarf_decode_macros): Create an include hash.
10066
5d853008
ME
100672012-01-30 Michael Eager <eager@eagercon.com>
10068
10069 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10070 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10071 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10072 (powerpc_linux_in_plt_stub): New function.
10073 (powerpc_linux_in_dynsym_resolve_code): New function.
10074 (ppc_skip_trampoline_code): New function.
10075 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10076 Use glibc_skip_solib_resolver.
10077
40478521
JK
100782012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10079
10080 Code cleanup: Make 1440 bytes of data segment read-only.
10081 * arch-utils.c (endian_enum): Make it const char *const [].
10082 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10083 Likewise.
10084 * breakpoint.c (always_inserted_enums): Likewise.
10085 * cli/cli-cmds.c (script_ext_enums): Likewise.
10086 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10087 enumlist parameter const char *const *.
10088 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10089 const char *const *.
10090 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10091 parameter const char *const *.
10092 * cris-tdep.c (cris_modes): Make it const char *const [].
10093 * filesystem.c (target_file_system_kinds): Likewise.
10094 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10095 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10096 (can_use_displaced_stepping_enum, scheduler_enums)
10097 (exec_direction_names): Likewise.
10098 * language.c (_initialize_language): Make the type_or_range_names and
10099 case_sensitive_names variables const char *const [].
10100 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10101 * python/python.c (python_excp_enums): Likewise.
10102 * remote.c (interrupt_sequence_modes): Likewise.
10103 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10104 * serial.c (logbase_enums): Likewise.
10105 * sh-tdep.c (sh_cc_enum): Likewise.
10106 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10107 Likewise.
10108 * symtab.c (multiple_symbols_modes): Likewise.
10109 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10110 Likewise.
10111 * utils.c (internal_problem_modes): Likewise.
10112
b3b8b934
JK
101132012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10116 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10117 result.
10118
8c85a4e2
DE
101192012-01-27 Doug Evans <dje@google.com>
10120
10121 * configure.ac (with_python): Fix absolute path handling for win32.
10122 * configure: Regenerate.
10123
78d8b4d7
DE
101242012-01-26 Doug Evans <dje@google.com>
10125
eca864fe
DE
10126 * symtab.c: Whitespace cleanup, no code changes.
10127
7e082072
DE
10128 * symtab.c (lookup_symbol_in_language): Improve comment.
10129 (lookup_symbol_aux): Fix comment.
10130
7dc25483
DE
10131 * psymtab.c (add_psymbol_to_list): Result is now "void".
10132 * psympriv.h (add_psymbol_to_list): Update.
10133
78d8b4d7
DE
10134 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10135
4c63965b
JK
101362012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10137
10138 Do not open script filenames twice.
10139 * cli/cli-cmds.c (source_script_from_stream): Pass to
10140 source_python_script also STREAM.
10141 * python/py-auto-load.c (source_section_scripts): Pass to
10142 source_python_script_for_objfile also STREAM.
10143 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10144 also INPUT.
10145 * python/python-internal.h (source_python_script_for_objfile): New
10146 parameter file, rename parameter file to filename.
10147 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10148 instead if !_WIN32. Update the function comment.
10149 (source_python_script, source_python_script_for_objfile)
10150 (source_python_script): New parameter file, rename parameter file to
10151 filename. Pass FILENAME to python_run_simple_file.
10152 * python/python.h (source_python_script): New parameter file, rename
10153 parameter file to filename.
10154
88f38a04
PA
101552012-01-26 Pedro Alves <palves@redhat.com>
10156
10157 * corelow.c (core_has_fake_pid): Delete.
10158 (core_close): Delete references to `core_has_fake_pid'.
10159 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10160 (core_open): Delete references to `core_has_fake_pid'.
10161 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10162 the removed global.
10163
e078317b
JB
101642012-01-26 Joel Brobecker <brobecker@adacore.com>
10165
10166 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10167 Remove language parameter from name_matcher. Adjust the comment.
10168 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10169 Remove language parameter.
10170 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10171 * linespec.c (iterate_name_matcher): Likewise.
10172 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10173 name_matcher. Adjust call accordingly.
10174 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10175 (maintenance_check_symtabs): Adjust type of parameter "fun".
10176 * psymtab.h (maintenance_check_symtabs): Likewise.
10177
74ccd7f5
JB
101782012-01-26 Joel Brobecker <brobecker@adacore.com>
10179
10180 * language.h (symbol_name_match_p_ftype): New typedef.
10181 (struct language_defn): Replace field la_symbol_name_compare
10182 by la_get_symbol_name_match_p.
10183 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10184 (ada_language_defn): Use it.
10185 * linespec.c (struct symbol_matcher_data): New type.
10186 (iterate_name_matcher): Rewrite.
10187 (iterate_over_all_matching_symtabs): Pass a pointer to
10188 a symbol_matcher_data struct to expand_symtabs_matching
10189 instead of just the lookup name.
10190 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10191 opencl-lang.c, p-lang.c, language.c: Delete field
10192 la_symbol_name_compare, and replace by NULL for new field
10193 la_get_symbol_name_match_p.
10194 * symfile.h (struct quick_symbol_functions): Update comment.
10195
5d268276
TT
101962012-01-25 Tom Tromey <tromey@redhat.com>
10197
10198 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10199 dereferencing.
10200
edcc5120
TT
102012012-01-24 Tom Tromey <tromey@redhat.com>
10202
10203 PR symtab/12406:
10204 * solib.c (update_solib_list): Update the program space's
10205 added_solibs and deleted_solibs fields.
10206 * progspace.h (struct program_space) <added_solibs,
10207 deleted_solibs>: New fields.
10208 (clear_program_space_solib_cache): Declare.
10209 * progspace.c (release_program_space): Call
10210 clear_program_space_solib_cache.
10211 (clear_program_space_solib_cache): New function.
10212 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10213 bpstat_stop_status. Use handle_solib_event.
10214 * breakpoint.c: Include gdb_regex.h.
10215 (print_solib_event): New function.
10216 (bpstat_print): Use print_solib_event.
10217 (bpstat_stop_status): Add special case for bp_shlib_event.
10218 (handle_solib_event): New function.
10219 (bpstat_what): Use handle_solib_event.
10220 (struct solib_catchpoint): New.
10221 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10222 (breakpoint_hit_catch_solib, check_status_catch_solib)
10223 (print_it_catch_solib, print_one_catch_solib)
10224 (print_mention_catch_solib, print_recreate_catch_solib): New
10225 functions.
10226 (catch_solib_breakpoint_ops): New global.
10227 (catch_load_or_unload, catch_load_command_1)
10228 (catch_unload_command_1): New functions.
10229 (internal_bkpt_check_status): Add special case for
10230 bp_shlib_event.
10231 (internal_bkpt_print_it): Use print_solib_event.
10232 (initialize_breakpoint_ops): Initialize
10233 catch_solib_breakpoint_ops.
10234 (_initialize_breakpoint): Register "catch load" and "catch
10235 unload".
10236 * breakpoint.h (handle_solib_event): Declare.
10237 * NEWS: Add entry for "catch load" and "catch unload".
10238
fa864999
TT
102392012-01-24 Tom Tromey <tromey@redhat.com>
10240
10241 * ada-lang.c: Include gdb_vecs.h.
10242 * charset.c: Include gdb_vecs.h.
10243 * tracepoint.h: Include gdb_vecs.h.
10244 * gdb_vecs.h: New file.
10245
f90263c1
TT
102462012-01-24 Pedro Alves <pedro@codesourcery.com>
10247
10248 * breakpoint.c (breakpoint_hit_catch_fork)
10249 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10250 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10251 * infrun.c (inferior_has_forked, inferior_has_vforked)
10252 (inferior_has_execd, inferior_has_called_syscall): Delete.
10253 (handle_syscall_event): Get syscall_number from the execution
10254 control state's wait status.
10255 (wait_for_inferior): Don't clear syscall_number.
10256
09ac7c10
TT
102572012-01-24 Pedro Alves <palves@redhat.com>
10258
10259 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10260 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10261 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10262 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10263 `ws' parameter.
10264 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10265 false for events other than TARGET_SIGNAL_TRAP.
10266 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10267 Add `ws' parameter.
10268 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10269 events other than TARGET_SIGNAL_TRAP.
10270 (tracepoint_breakpoint_hit): Add `ws' parameter.
10271 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10272 parameter.
10273 (bpstat_stop_status): Same.
10274 (pc_at_non_inline_function): Same.
10275 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10276 to pass the current event's waitstatus to bpstat_stop_status
10277 and pc_at_non_inline_function.
10278
86eb7e95
JK
102792012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10280
10281 Code cleanup.
10282 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10283 Update the function comment for it.
10284 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10285 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10286 for STREAM.
10287
a9b3a50f
PA
102882012-01-24 Pedro Alves <palves@redhat.com>
10289
10290 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10291 outside `bs->stop' block.
10292 (bpstat_what): Rework bp_shlib_event handling.
10293 (internal_bkpt_check_status): If the breakpoint is a
10294 bp_shlib_event, then set bs->stop and bs->print if
10295 stop_on_solib_events is set.
10296
53fe1783
GB
102972012-01-24 Gary Benson <gbenson@redhat.com>
10298
10299 Delete #if 0'd out code.
10300 * stack.c (print_frame_label_vars): Remove.
10301 (catch_info): Likewise.
10302 (_initialize_stack): Remove "info catch" command.
10303 * NEWS: Mention the above.
10304
49c62f2e
PA
103052012-01-24 Pedro Alves <palves@redhat.com>
10306
10307 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10308 it.
10309 (remote_notice_new_inferior): If the remote end doesn't support
10310 the multiprocess extensions, then the PID is fake.
10311 (add_current_inferior_and_thread): New.
10312 (remote_start_remote): Use it.
10313 (extended_remote_attach_1): Adjust.
10314 (extended_remote_create_inferior_1): Use
10315 add_current_inferior_and_thread.
10316
d0d8b0c6
JK
103172012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 Fix watchpoints to be specific for each inferior.
10320 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10321 current_program_space.
10322 * i386-nat.c (i386_inferior_data_cleanup): New.
10323 (i386_inferior_data_get): Replace variable inf_data_local by an
10324 inferior_data call.
10325 (i386_use_watchpoints): Initialize i386_inferior_data.
10326 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10327 specific iterate_over_lwps.
10328
4403d8e9
JK
103292012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10330
10331 Fix watchpoints across inferior fork.
10332 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10333 comment for linux_nat_iterate_watchpoint_lwps.
10334 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10335 linux_nat_iterate_watchpoint_lwps.
10336 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10337 * i386-linux-nat.c (update_debug_registers_callback): Update the
10338 comment for linux_nat_iterate_watchpoint_lwps.
10339 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10340 linux_nat_iterate_watchpoint_lwps.
10341 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10342 * i386-nat.c: Include inferior.h.
10343 (dr_mirror): Remove.
10344 (i386_inferior_data, struct i386_inferior_data)
10345 (i386_inferior_data_get): New.
10346 (i386_debug_reg_state): Use i386_inferior_data_get.
10347 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10348 (i386_insert_watchpoint, i386_remove_watchpoint)
10349 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10350 (i386_remove_hw_breakpoint): New variable state, use
10351 i386_debug_reg_state instead of DR_MIRROR.
10352 * linux-nat.c (delete_lwp): New declaration.
10353 (num_lwps): Move here from downwards.
10354 (delete_lwp_cleanup): New.
10355 (linux_child_follow_fork): Create new child_lp, call
10356 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10357 PTRACE_DETACH.
10358 (num_lwps): Move upwards.
10359 (linux_nat_iterate_watchpoint_lwps): New.
10360 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10361 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10362
2992c9a7 103632012-01-24 Joel Brobecker <brobecker@adacore.com>
10364
10365 GDB 7.4 released.
10366
e360902b
PA
103672012-01-23 Pedro Alves <palves@redhat.com>
10368
10369 * top.c (caution): Rename to ...
10370 (confirm): ... this.
10371 (show_caution): Rename to ...
10372 (show_confirm): ... this.
10373 (quit_cover): Adjust.
10374 (init_main): Adjust.
10375 * top.h (caution): Rename to ...
10376 (confirm): ... this.
10377 * utils.c (internal_vproblem, defaulted_query): Adjust.
10378
050a2e1d
PA
103792012-01-23 Pedro Alves <palves@redhat.com>
10380
10381 * top.c (caution): Update comment.
10382 (execute_command): Don't consider the current value of `caution'.
10383
77a35dd8
JK
103842012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10385
10386 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10387
a71b5a38
UW
103882012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10389
10390 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10391 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10392 * target.c (target_fileio_pwrite): Remove buffer address from
10393 debug output.
10394 (target_fileio_pread): Likewise.
10395
d99bd577
UW
103962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10397
10398 * NEWS: Document remote "info proc" and "generate-core-file".
10399
35c2fab7
UW
104002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10401
10402 * gdbarch.sh (find_memory_regions): New callback.
10403 * gdbarch.c, gdbarch.h: Regenerate.
10404
10405 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10406 callback before falling back to target method.
10407
10408 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10409 (linux_target_install_ops): No longer install it.
10410
10411 * linux-tdep.c (linux_find_memory_regions): New function.
10412 (linux_init_abi): Install it.
10413
6432734d
UW
104142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10415
10416 * gdbarch.sh (make_corefile_notes): New architecture callback.
10417 * gdbarch.c: Regenerate.
10418 * gdbarch.h: Likewise.
10419
10420 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10421 before target_make_corefile_notes. If NULL is returned, the
10422 target does not support core file generation.
10423
10424 * linux-nat.c: Include "linux-tdep.h".
10425 (find_signalled_thread, find_stop_signal): Remove.
10426 (linux_nat_do_thread_registers): Likewise.
10427 (struct linux_nat_corefile_thread_data): Likewise.
10428 (linux_nat_corefile_thread_callback): Likewise.
10429 (iterate_over_spus): Likewise.
10430 (struct linux_spu_corefile_data): Likewise.
10431 (linux_spu_corefile_callback): Likewise.
10432 (linux_spu_make_corefile_notes): Likewise.
10433 (linux_nat_collect_thread_registers): New function.
10434 (linux_nat_make_corefile_notes): Replace contents by call to
10435 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10436 as native-only callback.
10437
10438 * linux-tdep.h: Include "bfd.h".
10439 (struct regcache): Add forward declaration.
10440 (linux_collect_thread_registers_ftype): New typedef.
10441 (linux_make_corefile_notes): Add prototype.
10442 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10443 "regset.h", and "elf-bfd.h".
10444 (find_signalled_thread, find_stop_signal): New functions.
10445 (linux_spu_make_corefile_notes): Likewise.
10446 (linux_collect_thread_registers): Likewise.
10447 (struct linux_corefile_thread_data): New data structure.
10448 (linux_corefile_thread_callback): New funcion.
10449 (linux_make_corefile_notes): Likewise.
10450 (linux_make_corefile_notes_1): Likewise.
10451 (linux_init_abi): Install it.
10452
3030c96e
UW
104532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10454
10455 * gdbarch.sh (info_proc): New callback.
10456 * gdbarch.c, gdbarch.h: Regenerate.
10457
10458 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10459 before falling back to the target info_proc callback.
10460
10461 * linux-nat.c: Do not include "cli/cli-utils.h".
10462 (linux_nat_info_proc): Remove.
10463 (linux_target_install_ops): No longer install it.
10464
10465 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10466 (read_mapping): New function.
10467 (linux_info_proc): Likewise.
10468 (linux_init_abi): Install it.
10469
145b16a9
UW
104702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10471
10472 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10473 * infcmd.c: (info_proc_cmd_1): New function.
10474 (info_proc_cmd): New function, moved here from equivalent routine
10475 orignally in linux-nat.c.
10476 (info_proc_cmd_mappings): Likewise.
10477 (info_proc_cmd_stat): Likewise.
10478 (info_proc_cmd_status): Likewise.
10479 (info_proc_cmd_cwd): Likewise.
10480 (info_proc_cmd_cmdline): Likewise.
10481 (info_proc_cmd_exe): Likewise.
10482 (info_proc_cmd_all): Likewise.
10483 (_initialize_infcmd): Install "info proc" command and subcommands.
10484
10485 * target.h (struct target_ops): Add to_info_proc.
10486 (target_info_proc): Add prototype.
10487 * target.c (target_info_proc): New function.
10488
10489 * procfs.c (procfs_info_proc): Add prototype.
10490 (info_proc_cmd): Rename into ...
10491 (procfs_info_proc): ... this. Update argument types as appropriate
10492 for a to_info_proc implementation. Handle "what" argument.
10493 (procfs_target): Install procfs_info_proc.
10494 (_initialize_procfs): No longer install "info proc" command.
10495
10496 * linux-nat.c: (enum info_proc_what): Remove.
10497 (linux_nat_info_proc_cmd_1): Rename into ...
10498 (linux_nat_info_proc): ... this. Update argument types as appropriate
10499 for a to_info_proc implementation.
10500 (linux_nat_info_proc_cmd): Remove.
10501 (linux_nat_info_proc_cmd_mappings): Likewise.
10502 (linux_nat_info_proc_cmd_stat): Likewise.
10503 (linux_nat_info_proc_cmd_status): Likewise.
10504 (linux_nat_info_proc_cmd_cwd): Likewise.
10505 (linux_nat_info_proc_cmd_cmdline): Likewise.
10506 (linux_nat_info_proc_cmd_exe): Likewise.
10507 (linux_nat_info_proc_cmd_all): Likewise.
10508 (linux_target_install_ops): Install linux_nat_info_proc.
10509 (_initialize_linux_nat): No longer install "info proc" command
10510 and subcommands.
10511
b9e7b9c3
UW
105122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10513
10514 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10515 * config.in, configure: Regenerate.
10516
10517 * target.h (struct target_ops): Add to_fileio_readlink.
10518 (target_fileio_readlink): Add prototype.
10519 * target.c (target_fileio_readlink): New function.
10520
10521 * inf-child.c: Conditionally include <sys/param.h>.
10522 (inf_child_fileio_readlink): New function.
10523 (inf_child_target): Install it.
10524
10525 * remote.c (PACKET_vFile_readlink): New enum value.
10526 (remote_hostio_readlink): New function.
10527 (init_remote_ops): Install it.
10528 (_initialize_remote): Handle vFile:readlink packet type.
10529
7313baad
UW
105302012-01-20 Pedro Alves <palves@redhat.com>
10531 Ulrich Weigand <ulrich.weigand@linaro.org>
10532
10533 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10534 * config.in, configure: Regenerate.
10535
10536 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10537 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10538 (target_fileio_open): Add prototype.
10539 (target_fileio_pwrite): Likewise.
10540 (target_fileio_pread): Likewise.
10541 (target_fileio_close): Likewise.
10542 (target_fileio_unlink): Likewise.
10543 (target_fileio_read_alloc): Likewise.
10544 (target_fileio_read_stralloc): Likewise.
10545
10546 * target.c: Include "gdb/fileio.h".
10547 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10548 (default_fileio_target): New function.
10549 (target_fileio_open): Likewise.
10550 (target_fileio_pwrite): Likewise.
10551 (target_fileio_pread): Likewise.
10552 (target_fileio_close): Likewise.
10553 (target_fileio_unlink): Likewise.
10554 (target_fileio_close_cleanup): Likewise.
10555 (target_fileio_read_alloc_1): Likewise.
10556 (target_fileio_read_alloc): Likewise.
10557 (target_fileio_read_stralloc): Likewise.
10558
10559 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10560 <fcntl.h>, and <unistd.h>.
10561 (inf_child_fileio_open_flags_to_host): New function.
10562 (inf_child_errno_to_fileio_error): Likewise.
10563 (inf_child_fileio_open): Likewise.
10564 (inf_child_fileio_pwrite): Likewise.
10565 (inf_child_fileio_pread): Likewise.
10566 (inf_child_fileio_close): Likewise.
10567 (inf_child_fileio_unlink): Likewise.
10568 (inf_child_target): Install to_fileio routines.
10569
10570 * remote.c (init_remote_ops): Install to_fileio routines.
10571
901f9912
UW
105722012-01-20 Pedro Alves <palves@redhat.com>
10573 Ulrich Weigand <ulrich.weigand@linaro.org>
10574
10575 * remote.c (remote_multi_process_p): Only check for multi-process
10576 protocol feature, do not check for extended protocol.
10577 (remote_supports_multi_process): Check for extended protocol here.
10578 (set_general_process): Likewise.
10579 (extended_remote_kill): Likewise.
10580 (remote_pid_to_str): Likewise.
10581 (remote_query_supported): Always query multiprocess mode.
10582
e714e1bf
UW
105832012-01-20 Pedro Alves <palves@redhat.com>
10584 Ulrich Weigand <ulrich.weigand@linaro.org>
10585
10586 * inferior.h (struct inferior): Add fake_pid_p.
10587 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10588 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10589 magic_null_ptid since the remote side doesn't provide a real PID.
10590
50897289
TT
105912012-01-19 Tom Tromey <tromey@redhat.com>
10592
10593 * NEWS: Combine the two Python sections.
10594
1afc2033
JK
105952012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 * target.h (target_close): Update comment on the target's unpush state.
10598
305436e0
PA
105992012-01-19 Pedro Alves <palves@redhat.com>
10600
10601 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10602 linux_nat_async directly instead of going through the target
10603 vector.
10604 * target.c (unpush_target): Close target after unpushing it, not
10605 before.
10606
49323895
GB
106072012-01-19 Gary Benson <gbenson@redhat.com>
10608
10609 * mdebugread.c (sort_blocks): Replace integer constants with ones
10610 derived from FIRST_LOCAL_BLOCK.
10611
1db33378
PP
106122012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10613 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 PR gdb/9538
10616 * symfile.c (find_separate_debug_file): New function.
10617 (terminate_after_last_dir_separator): Likewise.
10618 (find_separate_debug_file_by_debuglink): Also try realpath.
10619 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10620 * configure: Regenerate.
10621 * config.in: Regenerate.
10622
f83d8a90
DE
106232012-01-18 Doug Evans <dje@google.com>
10624
10625 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10626 (main.o): Remove rule.
10627 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10628 (--with-sysroot): Rewrite.
10629 * configure: Regenerate.
10630 * config.in: Regenerate.
10631
2dbca4d6
SDJ
106322012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10633
10634 * parse.c (initialize_expout): New function.
10635 (reallocate_expout): Likewise.
10636 (parse_exp_in_context): Use `initialize_expout' and
10637 `reallocate_expout' when appropriate.
10638
0695b514
PA
106392012-01-18 Pedro Alves <palves@redhat.com>
10640
10641 * record.c (struct record_breakpoint, record_breakpoint_p)
10642 (record_breakpoints): New.
10643 (record_insert_breakpoint, record_remove_breakpoint): Manage
10644 record breakpoints list. Only remove breakpoints from the
10645 inferior if they had been inserted there in the first place.
10646
136e1c30
DE
106472012-01-17 Doug Evans <dje@google.com>
10648
10649 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10650 if we know we don't have a file name to look for.
10651
c0bf857d
PA
106522012-01-17 Pedro Alves <palves@redhat.com>
10653
10654 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10655 the frame's stop reason is UNWIND_UNAVAILABLE.
10656
b486de60
JK
106572012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10658
10659 Fix compilation error.
10660 * m2-exp.y (yyerror): Use ANSI C prototype.
10661
d04550a6
SDJ
106622012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10663
10664 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10665 (growbuf_by_size): Likewise.
10666 (yyerror): Likewise.
10667 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10668 (modblock): Remove variable (was #if 0'ed).
10669 (parse_number): Convert prototype from K&R to ANSI C.
10670 (yyerror): Likewise.
10671 * objc-exp.y (parse_number): Likewise.
10672 (yyerror): Likewise.
10673 (yylex): Remove #if 0'ed code.
10674 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10675 (yyerror): Likewise.
10676
4aac40c8
TT
106772012-01-16 Tom Tromey <tromey@redhat.com>
10678
10679 * NEWS: Add item.
10680 * symtab.h (compare_filenames_for_search): Declare.
10681 * symtab.c (compare_filenames_for_search): New function.
10682 (iterate_over_some_symtabs): Use it.
10683 * symfile.h (struct quick_symbol_functions)
10684 <map_symtabs_matching_filename>: Change spec.
10685 * psymtab.c (partial_map_symtabs_matching_filename): Use
10686 compare_filenames_for_search. Update for new spec.
10687 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10688 compare_filenames_for_search. Update for new spec.
10689 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10690
cafec441
TT
106912012-01-16 Tom Tromey <tromey@redhat.com>
10692
10693 PR python/13281:
10694 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10695 (struct main_type) <flag_flag_enum>: New field.
10696 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10697 * NEWS: Add entries.
10698 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10699 enums.
10700 * python/lib/gdb/printing.py (_EnumInstance): New class.
10701 (FlagEnumerationPrinter): Likewise.
10702
983af33b
SDJ
107032012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10704
10705 * breakpoint.c (create_sals_from_address_default): New function.
10706 (create_breakpoints_sal_default): Likewise.
10707 (decode_linespec_default): Likewise.
10708 (is_marker_spec): Removed.
10709 (strace_marker_p): New function.
10710 (init_breakpoint_sal): Using `strace_marker_p' instead of
10711 `is_marker_spec'.
10712 (create_breakpoint): Call method `create_sals_from_address' from
10713 breakpoint_ops, replacing code that created SALs conditionally
10714 on the type of the breakpoint. Call method `create_breakpoints_sal',
10715 replacing code that created breakpoints conditionally on the type
10716 wanted.
10717 (base_breakpoint_create_sals_from_address): New function.
10718 (base_breakpoint_create_breakpoints_sal): Likewise.
10719 (base_breakpoint_decode_linespec): Likewise.
10720 (base_breakpoint_ops): Add methods
10721 `base_breakpoint_create_sals_from_address',
10722 `base_breakpoint_create_breakpoints_sal' and
10723 `base_breakpoint_decode_linespec'.
10724 (bkpt_create_sals_from_address): New function.
10725 (bkpt_create_breakpoints_sal): Likewise.
10726 (bkpt_decode_linespec): Likewise.
10727 (tracepoint_create_sals_from_address): Likewise.
10728 (tracepoint_create_breakpoints_sal): Likewise.
10729 (tracepoint_decode_linespec): Likewise.
10730 (strace_marker_create_sals_from_address): Likewise.
10731 (strace_marker_create_breakpoints_sal): Likewise.
10732 (strace_marker_decode_linespec): Likewise.
10733 (strace_marker_breakpoint_ops): New variable.
10734 (addr_string_to_sals): Remove `marker_spec'. Call method
10735 `decode_linespec' from breakpoint_ops, replacing code that decoded
10736 an address string into a SAL. Use `strace_marker_p' instead of
10737 `marker_spec'.
10738 (strace_command): Decide whether we are dealing with a static
10739 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10740 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10741 * breakpoint.h (linespec_result, linespec_sals): New forward
10742 declarations.
10743 (breakpoint_ops) <create_sals_from_address>,
10744 <create_breakpoints_sal>, <decode_linespec>: New methods.
10745
4795f398
DE
107462012-01-14 Doug Evans <dje@google.com>
10747
10748 * NEWS: Update text for "maint set python print-stack".
10749 It is deprecated in gdb 7.4 and deleted in 7.5.
10750
ee5106fe
EZ
107512012-01-13 Eli Zaretskii <eliz@gnu.org>
10752
10753 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10754 including curses.h.
10755
b161e06f
JK
107562012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10757
10758 * configure: Regenerate.
10759 * config.in: Regenerate.
10760
85254831
KS
107612012-01-12 Keith Seitz <keiths@redhat.com>
10762
10763 PR mi/10586
10764 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10765 (ANONYMOUS_UNION_NAME): Define.
10766 (is_path_expr_parent): New function.
10767 (get_path_expr_parent): New function.
10768 (is_anonymous_child): New function.
10769 (create_child_with_value): If the child is anonymous and without
10770 a name, assign an object name to it.
10771 (c_describe_child): Use get_path_expr_parent to determine
10772 the parent expression.
10773 If there field represents an anonymous struct or union and
10774 has no name, set an appropriate display name and expression.
10775 (cplus_describe_child): Likewise.
10776
620fa63a
PA
107772012-01-12 Pedro Alves <palves@redhat.com>
10778
10779 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10780 available when %ebp is found to be zero (outermost).
10781
2efa2c79
AT
107822012-01-11 Andreas Tobler <andreast@fgznet.ch>
10783
10784 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10785 an internal gdb_static_assert.
10786 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10787
88e7d25d
TT
107882012-01-11 Tom Tromey <tromey@redhat.com>
10789
10790 PR gdb/9598:
10791 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10792 catch" and "catch throw".
10793
72384ba3
PH
107942012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10795
10796 * blockframe.c (block_innermost_frame): Start search from selected
10797 frame, if present, or otherwise the current frame.
10798
10799 * c-exp.y (variable): Update innermost_block for
10800 'block COLONCOLON NAME' clause.
10801 * m2-exp.y (variable): Ditto.
10802 * objc-exp.y (variable): Ditto.
10803
065a711f
TT
108042012-01-10 Tom Tromey <tromey@redhat.com>
10805
10806 PR python/13199:
10807 * python/python.c (finish_python_initialization): Set sys.argv.
10808
f3f5162e
DE
108092012-01-10 Doug Evans <dje@google.com>
10810
10811 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10812 "want_line_info". All callers updated.
10813 (dwarf_decode_lines_1): New function.
10814 (handle_DW_AT_stmt_list): Add function comment.
10815 New arg "want_line_info". All callers updated.
10816 (read_file_scope,read_type_unit_scope): Move comment from
10817 handle_DW_AT_stmt_list to here.
10818
9934703b
JK
108192012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 Fix regression after libiberty/ update for GCC PR 6057 and others.
10822 * c-exp.y (operator) <OPERATOR DELETE>
10823 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10824 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10825 (make_builtin_type, make_name): New variable i, add gdb_assert.
10826 (operator) <OPERATOR NEW>: Update ARGS to 3.
10827 (operator) <OPERATOR DELETE>: Add trailing space.
10828 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10829 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10830 * cp-support.c (cp_canonicalize_string): Check NULL from
10831 cp_comp_to_string, call warning and return.
10832
06b9f45f
JK
108332012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10834
10835 Fix duplicate .o files after omitting libbfd.a.
10836 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10837 (SFILES): Add corelow.c.
10838 (COMMON_OBS): Add corelow.o.
10839 (ALLDEPFILES): Remove corelow.c.
10840 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10841 * config/alpha/alpha-osf3.mh: Likewise.
10842 * config/alpha/fbsd.mh: Likewise.
10843 * config/arm/nbsdaout.mh: Likewise.
10844 * config/arm/nbsdelf.mh: Likewise.
10845 * config/i386/i386gnu.mh: Likewise.
10846 * config/ia64/hpux.mh: Likewise.
10847 * config/ia64/linux.mh: Likewise.
10848 * config/m32r/linux.mh: Likewise.
10849 * config/m68k/linux.mh: Likewise.
10850 * config/mips/irix5.mh: Likewise.
10851 * config/mips/irix6.mh: Likewise.
10852 * config/pa/hpux.mh: Likewise.
10853 * config/pa/linux.mh: Likewise.
10854 * config/powerpc/aix.mh: Likewise.
10855 * config/sparc/linux.mh: Likewise.
10856 * config/sparc/linux64.mh: Likewise.
10857 * config/sparc/sol2.mh: Likewise.
10858 * config/vax/vax.mh: Likewise.
10859 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10860 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10861 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10862 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10863 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10864 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10865 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10866 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10867 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10868 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10869 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10870 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10871 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10872 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10873 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10874 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10875 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10876 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10877 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10878 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10879 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10880 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10881 corelow.o from gdb_target_obs.
10882 * corefile.c (core_target): Update the comment on NULL value.
10883 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10884 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10885 MATCHES. Drop YUMMY set on NULL.
10886 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10887 reclaim CORE_DATA if it is already NULL.
10888
34365054
DE
108892012-01-09 Doug Evans <dje@google.com>
10890
10891 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10892 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10893
696166a3
KS
108942012-01-09 Keith Seitz <keiths@redhat.com>
10895
10896 * breakpoint.c (wrapper.h): Don't include.
10897
8e7b59a5
KS
108982012-01-09 Keith Seitz <keiths@redhat.com>
10899
10900 * Makefile.in (SFILES): Remove wrapper.c.
10901 (HFILES_NO_SRCDIR): Remove wrapper.h.
10902 (COMMON_OBS): Remove wrapper.o.
10903 * cli/cli-interp.c: Don't inlude wrapper.h.
10904 * corelow.c: Likewise.
10905 (core_open): Replace gdb_target_find_new_threads with
10906 TRY_CATCH around target_find_new_threads.
10907 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10908 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10909 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10910 evaluate_expression.
10911 (varobj_set_value): Likewise for evaluate_expression and
10912 value_assign.
10913 (install_new_variable): Likewise for value_fetch_lazy.
10914 (adjust_value_for_child_access): Likewise for value_ind.
10915 (c_describe_child): Likewise for value_subscript and
10916 value_ind.
10917 (c_value_of_root): Likewise for evaluate_expression.
10918 * wrapper.c: Remove.
10919 * wrapper.h: Remove.
10920
1a4eeb98
DE
109212012-01-09 Doug Evans <dje@google.com>
10922
9ff913ba
DE
10923 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10924 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10925 "abfd" args with "section". All callers updated.
10926 Error checking code moved ...
10927 (error_check_comp_unit_head): ... here. New function.
10928 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10929 Delete arg "abfd". New arg "type_offset". All callers updated.
10930 (create_debug_types_hash_table): Simplify by using
10931 read_and_check_type_unit_head.
10932
1a4eeb98
DE
10933 * parser-defs.h (namecopy): Delete.
10934 * parse.c (namecopy, namecopy_size): Move into copy_name.
10935
2e6af8c0
JK
109362012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10937
10938 Partially fix duplicate .o files after omitting libbfd.a.
10939 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10940 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10941 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10942 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10943 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10944 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10945 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10946
9f2f828a
PA
109472012-01-09 Pedro Alves <palves@redhat.com>
10948
10949 * MAINTAINERS: Update my email address.
10950
4d72c0bc
DE
109512012-01-08 Doug Evans <dje@google.com>
10952
d467dd73
DE
10953 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10954 n_type_units. Rename type_comp_units to all_type_units.
10955 All uses updated.
10956 (add_signatured_type_cu_to_table): Renamed from
10957 add_signatured_type_cu_to_list. All callers updated.
10958
4d72c0bc
DE
10959 * gdbtypes.h (struct cplus_struct_type): Delete member
10960 nfn_fields_total. All uses removed.
10961
21b2bd31
DE
109622012-01-06 Doug Evans <dje@google.com>
10963
10964 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10965 to top of file.
10966 (dwarf2_find_comp_unit): Delete.
10967 (process_psymtab_comp_unit): Make result "void".
10968 Delete args buffer, info_ptr, buffer_size, and replace with
10969 "section". All callers updated.
10970 (dwarf2_build_psymtabs_hard): Simplify.
10971
bfd189b1
SDJ
109722012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10973 Thiago Jung Bauermann <bauerman@br.ibm.com>
10974
10975 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10976 before `struct gdb_exception'.
10977 * breakpoint.c (update_global_location_list_nothrow)
10978 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10979 * cp-abi.c (value_rtti_type): Likewise.
10980 * cp-support.c (cp_validate_operator): Likewise.
10981 * infrun.c (insert_exception_resume_breakpoint)
10982 (check_exception_resume, keep_going): Likewise.
10983 * mi-interp.c (mi_breakpoint_created)
10984 (mi_breakpoint_modified): Likewise.
10985 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10986 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10987 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10988
6b07635f
DE
109892012-01-05 Doug Evans <dje@google.com>
10990
0b30b85c
DE
10991 * dwarf2read.c (statement_prologue): Delete, unused.
10992
98714339
DE
10993 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10994 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10995
6b07635f
DE
10996 * dwarf2read.c (comp_unit_header): Delete, unused.
10997
761f4555
UW
109982012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10999
11000 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11001 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11002
2ca0b532
PA
110032012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11004
11005 * infrun.c (normal_stop): Don't skip calling the normal_stop
11006 observers if the thread was doing a multi-step, but stopped for
11007 some reason other than stepping.
11008
50aeff07
PA
110092012-01-05 Pedro Alves <alves.ped@gmail.com>
11010
11011 * cli/cli-decode.h: Add comments.
11012 (CMD_LIST_AMBIGUOUS): Moved to command.h
11013 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11014 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11015 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11016 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11017 (add_com, add_com_alias, add_info, add_info_alias)
11018 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11019 declarations.
11020 * command.h: Add and adjust comments.
11021 (CMD_LIST_AMBIGUOUS): Moved here.
11022 (help_cmd, help_cmd_list): Delete declarations.
11023
5953832c
DE
110242012-01-04 Doug Evans <dje@google.com>
11025
e5fe5e75
DE
11026 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11027 All callers updated.
11028 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11029 Replace all arguments with "per_cu". All callers updated.
11030
28dee7f5
DE
11031 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11032
23745b47
DE
11033 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11034 New arg "per_cu". All callers updated.
11035
5953832c
DE
11036 Delete #if 0'd out code.
11037 * language.c (binop_result_type): Delete.
11038 (simple_type, ordered_type, same_type, integral_type): Delete.
11039 (numeric_type, character_type, string_type, boolean_type): Delete.
11040 (float_type, structured_type): Delete.
11041 * language.h: Update.
11042
0f5b7562
TT
110432012-01-04 Tom Tromey <tromey@redhat.com>
11044
11045 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11046
78218f56
JB
110472012-01-04 Joel Brobecker <brobecker@adacore.com>
11048
11049 * corefile.c (close_exec_file): Delete.
11050 (reopen_exec_file): Remove commented out code that seems related
11051 to close_exec_file, which is being deleted here.
11052 * inferior.h (close_exec_file): Delete.
11053 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11054
0fcd72ba
JB
110552012-01-04 Joel Brobecker <brobecker@adacore.com>
11056
11057 * ada-lang.c: #include "cli/cli-utils.h".
11058 (get_selections): Use skip_spaces.
11059 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11060 (catch_ada_exception_command_split): Use skip_spaces.
11061 (ada_decode_assert_location): Likewise.
11062
1dabb4c4
JB
110632012-01-04 Joel Brobecker <brobecker@adacore.com>
11064
11065 * linespec.c (decode_line_internal): Check for C++ or Java
11066 compound constructs only if the current language is C, C++
11067 or Java.
11068
5931a2fa
JK
110692012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11070
11071 Revert:
11072 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11073 Joel Brobecker <brobecker@adacore.com>
11074 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11075 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11076 3 times.
11077 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11078 fall through into AT_ENTRY_POINT.
11079 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11080 DUMMY_ADDR with it.
11081 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11082 PPC_INSN_SIZE skip to 3 times.
11083
1a2da5ee
JB
110842012-01-04 Joel Brobecker <brobecker@adacore.com>
11085
11086 * linespec.c (add_minsym): Preserve function descriptors.
11087
8645ff69
UW
110882012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11089
11090 * breakpoint.c (all_locations_are_pending): Consider locations
11091 in program spaces executing during startup pending as well.
11092
0b302171
JB
110932012-01-04 Joel Brobecker <brobecker@adacore.com>
11094
11095 Copyright year update in most files of the GDB Project.
11096
8ba098ad
JB
110972012-01-04 Joel Brobecker <brobecker@adacore.com>
11098
11099 * copyright.sh: Delete.
11100 * copyright.py: Rewrite.
11101
09c01c30
JB
111022012-01-04 Joel Brobecker <brobecker@adacore.com>
11103
11104 * gnulib/extra/update-copyright: New file, imported from gnulib.
11105
3c36c0af
JB
111062012-01-04 Joel Brobecker <brobecker@adacore.com>
11107
11108 * README (Copyright and License Notices): New section.
11109
888fe1e1
TT
111102012-01-03 Tom Tromey <tromey@redhat.com>
11111
11112 PR python/12533:
11113 * python/py-value.c (valpy_dereference, valpy_get_address
11114 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11115 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11116 (valpy_absolute, valpy_richcompare): Free intermediate values.
11117
6e681866
JB
111182011-01-03 Joel Brobecker <brobecker@adacore.com>
11119
11120 * ada-lang.c: Reformat the copyright notice.
11121
0cd09acb
JK
111222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11123
11124 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11125 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11126 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11127 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11128 Revert this part of:
11129 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11130 Build gdb directly from *.o files not using libgdb.a.
11131 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11132
12c3e59c
JB
111332012-01-02 Joel Brobecker <brobecker@adacore.com>
11134
11135 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11136 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11137 Reformat the copyright header.
11138
11bf1490
JK
111392012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 Revert this part of:
11142 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11143 Remove the gdbtui binary.
11144 * gdb.c (main): Remove args.interpreter_p initialization.
11145 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11146 * main.h (struct captured_main_args): Remove interpreter_p.
11147
1fef196f
JB
111482012-01-02 Joel Brobecker <brobecker@adacore.com>
11149
11150 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11151
67827812
JB
111522012-01-02 Joel Brobecker <brobecker@adacore.com>
11153
11154 * top.c (print_gdb_version): Update copyright year.
11155
a4d0b831
YQ
111562012-01-02 Yao Qi <yao@codesourcery.com>
11157
11158 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11159
b5914469
JK
111602012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11161 Joel Brobecker <brobecker@adacore.com>
11162
11163 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11164 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11165 3 times.
11166 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11167 fall through into AT_ENTRY_POINT.
11168 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11169 DUMMY_ADDR with it.
11170 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11171 PPC_INSN_SIZE skip to 3 times.
11172
8da828f7
JK
111732012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11174
11175 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11176 the return value.
11177 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11178
8574e74b
JK
111792012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 Build gdb directly from *.o files not using libgdb.a.
11182 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11183 (COMMON_OBS): Remove solib-target.o.
11184 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11185 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11186 (LIBGDB_OBS, libgdb.a): Move it above.
11187 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11188 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11189 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11190 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11191 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11192 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11193 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11194 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11195 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11196 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11197 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11198 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11199 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11200 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11201 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11202 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11203 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11204 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11205 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11206 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11207 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11208 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11209 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11210 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11211 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11212 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11213 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11214
217bff3e
JK
112152012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 Remove the gdbtui binary.
11218 * .gitignore (/gdbtui): Remove.
11219 * Makefile.in (TUI): Remove.
11220 (SUBDIR_TUI_OBS): Remove tui-main.o.
11221 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11222 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11223 (tui-main.o): Remove.
11224 (all_object_files): Remove tui-main.o.
11225 * NEWS: New note for the gdbtui removal.
11226 * configure: Rebuilt.
11227 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11228 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11229 CONFIG_UNINSTALL respectively.
11230 * gdb.c (main): Remove args.interpreter_p initialization.
11231 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11232 * main.h (struct captured_main_args): Remove interpreter_p.
11233 * tui/tui-main.c: Remove.
11234
9cdd5dbd
DE
112352012-01-01 Doug Evans <dje@google.com>
11236
bb5ed363
DE
11237 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11238 (dwarf2_physname, read_import_statement): Ditto.
11239 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11240 (process_structure_scope read_subroutine_type): Ditto.
11241 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11242 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11243 (dwarf2_fetch_die_location_block): Ditto.
11244 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11245
a0f42c21
DE
11246 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11247 All callers updated.
11248 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11249 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11250 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11251
2dc860c0
DE
11252 * dwarf2read.c (load_cu): Move assert to more useful location.
11253
68dc6402
DE
11254 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11255 All callers updated.
11256
9cdd5dbd
DE
11257 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11258 (dwarf2_elf_names): Minor reformat.
11259 (dwarf2_per_cu_data): Tweak comment.
11260 (dwarf2_read_section): Fix comment.
11261 (create_all_comp_units): Fix comment.
11262 (load_full_comp_unit): Fix comment.
11263 (process_full_comp_unit): Fix comment.
11264 (read_signatured_type): Fix comment.
11265
0c10e53e 11266For older changes see ChangeLog-2011.
c906108c
SS
11267\f
11268Local Variables:
11269mode: change-log
11270left-margin: 8
11271fill-column: 74
11272version-control: never
57da7796 11273coding: utf-8
c906108c 11274End:
This page took 1.948795 seconds and 4 git commands to generate.